summarylogtreecommitdiffstats
path: root/upak.install
blob: a5fb8bda0e16007839d1c13143c3a792a2a6ad9a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
#!/bin/sh
post_install() {

  if [ -z $SUDO_USER ]; then
    if [ $SUDO_USER=root ]; then
      echo "/opt/hhirf/upak/doc" > \/root/upak_help_path
    else
      cat <<EOF
>>>  please create a file in your home directory named 'upak_help_path' containing
>>>  /opt/hhirf/upak/doc
EOF
    fi
  else
    echo "/opt/hhirf/upak/doc" > \/home/${SUDO_USER}/upak_help_path
  fi

}