Mercurial > trustbridge
comparison packaging/linux-installer.inc @ 1193:ec16e3d81278
Correctly print sudo or not sudo for the uninstaller runcommand
author | Andre Heinecke <andre.heinecke@intevation.de> |
---|---|
date | Mon, 22 Sep 2014 16:31:31 +0200 |
parents | 969970a83b6d |
children | 292a25c34aff |
comparison
equal
deleted
inserted
replaced
1192:7839d3d696a1 | 1193:ec16e3d81278 |
---|---|
118 echo | 118 echo |
119 echo "################################################################################" | 119 echo "################################################################################" |
120 if [ $SYSINST -eq 1 ]; then | 120 if [ $SYSINST -eq 1 ]; then |
121 getxt "System wide installation successful.\n" | 121 getxt "System wide installation successful.\n" |
122 RUNCMD="su -l $SUDO_USER -c " | 122 RUNCMD="su -l $SUDO_USER -c " |
123 UN_RUNCMD="sudo " | |
123 else | 124 else |
124 getxt "Single user installation successful.\n" | 125 getxt "Single user installation successful.\n" |
125 RUNCMD="" | 126 RUNCMD="" |
127 UN_RUNCMD="" | |
126 fi | 128 fi |
127 getxt "TrustBridge has been installed to: '%s'\n\n" "${instcfg[PREFIX]}" | 129 getxt "TrustBridge has been installed to: '%s'\n\n" "${instcfg[PREFIX]}" |
128 | 130 |
129 getxt "To remove the application and the root certificates it has inserted,\n" | 131 getxt "To remove the application and the root certificates it has inserted,\n" |
130 getxt "call the uninstall command:\n" | 132 getxt "call the uninstall command:\n" |
131 echo " $RUNCMD ${instcfg[PREFIX]}/bin/trustbridge-uninstall.sh" | 133 echo " $UN_RUNCMD ${instcfg[PREFIX]}/bin/trustbridge-uninstall.sh" |
132 | 134 |
133 echo "################################################################################" | 135 echo "################################################################################" |
134 getxt "Press enter to launch '%s'\n" "${instcfg[PREFIX]}/bin/trustbridge" | 136 getxt "Press enter to launch '%s'\n" "${instcfg[PREFIX]}/bin/trustbridge" |
135 getxt "or press Control-C to quit the installer.\n" | 137 getxt "or press Control-C to quit the installer.\n" |
136 if [ $UPDATE -eq 0 ]; then | 138 if [ $UPDATE -eq 0 ]; then |