diff options
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 + } |