diff options
Diffstat (limited to 'deej.install')
-rw-r--r-- | deej.install | 37 |
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" +} |