summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorWinston Astrachan2020-08-11 13:01:25 -0400
committerWinston Astrachan2020-08-11 13:01:25 -0400
commit3b6a72303b089c1a24634155247e719fd1d9719f (patch)
tree9970cdedd77bfecd0509820134008c7f762bf375
parent5a131302888b48b17f73f1e11d38363e77a049a1 (diff)
downloadaur-3b6a72303b089c1a24634155247e719fd1d9719f.tar.gz
refactor: update deej install script/warnings
-rw-r--r--deej.install37
1 files changed, 24 insertions, 13 deletions
diff --git a/deej.install b/deej.install
index b98677b2362b..8667e50500ed 100644
--- a/deej.install
+++ b/deej.install
@@ -1,18 +1,13 @@
post_install() {
echo ""
- echo "!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!"
- echo "!"
- echo "! IMPORTANT:"
- echo "!"
- echo "! + A sample configuration is included at /opt/deej/default-config.yaml"
- echo "! You must create your own configuration at /opt/deej/config.yaml"
- echo "!"
- echo "! + Deej must run from the same directory as it's configuration file"
- echo "! The provided .desktop entry will accomplish this for you"
- echo "!"
- echo "! https://github.com/omriharel/deej#how-to-run"
- echo "!"
- echo "!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!"
+ note_header "IMPORTANT INFORMATION ABOUT DEEJ:"
+ note "A sample configuration is included at /opt/deej/default-config.yaml"
+ note "You must create your own configuration at /opt/deej/config.yaml"
+ note ""
+ note "Deej must run from the same directory as it's configuration file"
+ note "The provided .desktop entry will accomplish this for you"
+ note ""
+ note "https://github.com/omriharel/deej#how-to-run"
echo ""
if [[ ! -f /opt/deej/config.yaml ]]; then
@@ -21,6 +16,22 @@ post_install() {
fi
}
+post_upgrade() {
+ post_install
+}
+
pre_remove() {
rm -rf /opt/deej/logs
}
+
+# Pacman-like colors
+reset="$(tput sgr0)"
+bold="${reset}$(tput bold)"
+blue="${bold}$(tput setaf 4)"
+yellow="${bold}$(tput setaf 3)"
+note_header() {
+ printf "${yellow}==> NOTE: ${bold}$1${reset}\n"
+}
+note() {
+ printf "${blue} -> ${bold}$1${reset}\n"
+}