diff options
author | Filippo Falezza | 2022-11-02 16:55:45 +0000 |
---|---|---|
committer | Filippo Falezza | 2022-11-02 16:55:45 +0000 |
commit | 3b82ce5c6fc0bf563708d0f55e2b9ad209bc176e (patch) | |
tree | a6692a8b70e51006bc24c931f2a881de219d15b0 /upak.install | |
parent | cceb74f44a2d5361a61b1ee2ecb2b2c3d517891c (diff) | |
download | aur-3b82ce5c6fc0bf563708d0f55e2b9ad209bc176e.tar.gz |
updated to latest version - moved install directory back to default: /usr/local/hhirf
Diffstat (limited to 'upak.install')
-rw-r--r-- | upak.install | 31 |
1 files changed, 12 insertions, 19 deletions
diff --git a/upak.install b/upak.install index dfe818bae444..a11fe1135421 100644 --- a/upak.install +++ b/upak.install @@ -1,24 +1,17 @@ #!/bin/sh - -post_upgrade() { - _help_warning - -} - post_install() { - _help_warning -} - -_help_warning() { - cat <<EOF ->>> NOTE: Remember to set properly your help path. By default upak is expecting the ->>> help to be located in /usr/hhirf/damm.hep or to be pointed out in explicitly ->>> in the file: \${HOME}/upak_help_path. ->>> ->>> You can set your help path by typing in a terminal the following: ->>> ->>> echo "/usr/share/doc/upak/" > \${HOME}/upak_help_path ->>> + if [ -z $SUDO_USER ]; then + if [ $SUDO_USER=root ]; then + echo "/usr/local/hhirf/upak/doc" > \/root/upak_help_path + else + cat <<EOF +>>> please create a file in your home directory named 'upak_help_path' containing +>>> /usr/local/hhirf/upak/doc EOF + fi + else + echo "/usr/local/hhirf/upak/doc" > \/home/${SUDO_USER}/upak_help_path + fi + } |