Mercurial > trustbridge
comparison packaging/linux-installer.inc.in @ 1075:7e1fd6d96714
(issue109) Feedback improved. Shell translation updated.
author | Bernhard Reiter <bernhard@intevation.de> |
---|---|
date | Thu, 11 Sep 2014 10:18:46 +0200 |
parents | 709a7633a2c6 |
children | d619507d9e9f |
comparison
equal
deleted
inserted
replaced
1074:8d811b030959 | 1075:7e1fd6d96714 |
---|---|
241 { | 241 { |
242 echo | 242 echo |
243 echo "#################################################################################" | 243 echo "#################################################################################" |
244 if [ $SYSINST -eq 1 ]; then | 244 if [ $SYSINST -eq 1 ]; then |
245 getxt "System wide installation successful.\n" | 245 getxt "System wide installation successful.\n" |
246 RUNCMD="su -l $SUDO_USER -c " | |
246 else | 247 else |
247 getxt "Single user installation successful.\n" | 248 getxt "Single user installation successful.\n" |
249 RUNCMD="" | |
248 fi | 250 fi |
249 getxt "TrustBridge has been installed to: '%s'\n\n" "${instcfg[PREFIX]}" | 251 getxt "TrustBridge has been installed to: '%s'\n\n" "${instcfg[PREFIX]}" |
250 | 252 |
251 if [ $SYSINST -eq 1 ]; then | 253 getxt "To remove the application and the root certificates it has inserted," |
252 getxt "If you do not want to change the certificates of other users\n" | 254 getxt "call the deinstall command:" |
253 getxt "uninstall it with:\n" | 255 echo " $RUNCMD ${instcfg[PREFIX]}/bin/trustbridge-deinstall-TODO.sh" |
254 echo " 'sudo $0 -d'" | 256 |
255 getxt "And install it again without sudo:\n" | |
256 echo " $0" | |
257 RUNCMD="su -l $SUDO_USER -c " | |
258 else | |
259 getxt "If you want to change the certificates of all users\n" | |
260 getxt "uninstall it with:\n" | |
261 echo " '$0 -d'" | |
262 getxt "And install it again using sudo:\n" | |
263 echo " sudo $0" | |
264 RUNCMD="" | |
265 fi | |
266 echo "#################################################################################" | 257 echo "#################################################################################" |
267 getxt "Press enter to launch '%s'\n" "${instcfg[PREFIX]}/bin/trustbridge" | 258 getxt "Press enter to launch '%s'\n" "${instcfg[PREFIX]}/bin/trustbridge" |
268 if [ $UPDATE -eq 0 ]; then | 259 if [ $UPDATE -eq 0 ]; then |
269 read | 260 read |
270 $RUNCMD "${instcfg[PREFIX]}/bin/trustbridge" & | 261 $RUNCMD "${instcfg[PREFIX]}/bin/trustbridge" & |