summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorRichard Hillmann2021-07-21 16:22:05 +0200
committerRichard Hillmann2021-07-21 16:22:05 +0200
commit4cf318a82f76f00e45470bb95d2fa4e5b78e0b2b (patch)
treef04f422c6081c8fd0afa05a66c12e4400da3ee13
parentdc3295637bf0b13a75ae8f24dd3fea4192218339 (diff)
downloadaur-4cf318a82f76f00e45470bb95d2fa4e5b78e0b2b.tar.gz
Colored info messages
-rw-r--r--awsvpnclient.install18
1 files changed, 14 insertions, 4 deletions
diff --git a/awsvpnclient.install b/awsvpnclient.install
index ca2d27b93eea..60f649288e49 100644
--- a/awsvpnclient.install
+++ b/awsvpnclient.install
@@ -1,20 +1,30 @@
+#!/bin/bash
# https://gitlab.archlinux.org/pacman/pacman/raw/master/proto/proto.install
service=awsvpnclient
+tput_reset="$(tput sgr0)"
+tput_bold="${all_off}$(tput bold)"
+tput_blue="${bold}$(tput setaf 4)"
+tput_yellow="${bold}$(tput setaf 3)"
+
+note() {
+ printf "${tput_blue}==>${tput_yellow} NOTE:${tput_bold} %s${tput_reset}\n" "$1"
+}
+
# pre_install() {}
post_install() {
systemctl daemon-reload
- echo "The AWS VPN Client requires the ${service}.service and systemd-resolved.service to be running!"
- echo "Please enable ${service} with 'sudo systemctl enable ${service} && sudo systemctl start ${service}'"
+ note "The AWS VPN Client requires the ${service}.service and systemd-resolved.service to be running!"
+ note "Please enable ${service} with 'sudo systemctl enable ${service} && sudo systemctl start ${service}'"
}
# pre_upgrade() {}
post_upgrade() {
systemctl daemon-reload
- echo "You may need to restart the ${service} service with 'sudo systemctl restart ${service}'"
- echo "Restarting the service ${service} will interrupt your current connections!"
+ note "You may need to restart the ${service} service with 'sudo systemctl restart ${service}'"
+ note "Restarting the service ${service} will interrupt your current connections!"
}
pre_remove() {