Mercurial > trustbridge
comparison packaging/linux-installer.inc @ 1251:3b433a350092
(issue54) Disable start after installation when root.
author | Andre Heinecke <andre.heinecke@intevation.de> |
---|---|
date | Thu, 25 Sep 2014 15:56:37 +0200 |
parents | cf5784d2c3a8 |
children | 551b274ec4d1 |
comparison
equal
deleted
inserted
replaced
1250:7ea3a4c0e2ae | 1251:3b433a350092 |
---|---|
121 { | 121 { |
122 echo | 122 echo |
123 echo "################################################################################" | 123 echo "################################################################################" |
124 if [ $SYSINST -eq 1 ]; then | 124 if [ $SYSINST -eq 1 ]; then |
125 getxt "System wide installation successful.\n" | 125 getxt "System wide installation successful.\n" |
126 RUNCMD="su -l $SUDO_USER -c " | |
127 UN_RUNCMD="sudo " | 126 UN_RUNCMD="sudo " |
128 else | 127 else |
129 getxt "Single user installation successful.\n" | 128 getxt "Single user installation successful.\n" |
130 RUNCMD="" | |
131 UN_RUNCMD="" | 129 UN_RUNCMD="" |
132 fi | 130 fi |
133 getxt "TrustBridge has been installed to: '%s'\n\n" "${instcfg[PREFIX]}" | 131 getxt "TrustBridge has been installed to: '%s'\n\n" "${instcfg[PREFIX]}" |
134 | 132 |
135 getxt "To remove the application and the root certificates it has inserted,\n" | 133 getxt "To remove the application and the root certificates it has inserted,\n" |
136 getxt "call the uninstall command:\n" | 134 getxt "call the uninstall command:\n" |
137 echo " $UN_RUNCMD ${instcfg[PREFIX]}/bin/trustbridge-uninstall.sh" | 135 echo " $UN_RUNCMD ${instcfg[PREFIX]}/bin/trustbridge-uninstall.sh" |
138 | 136 |
139 echo "################################################################################" | 137 echo "################################################################################" |
140 if ! [ $(id -u) -eq 0 -a -z "$SUDO_USER" ]; then | 138 if ! [ $(id -u) -eq 0 ]; then |
141 if [ $UPDATE -eq 0 ]; then | 139 getxt "Press enter to launch '%s'\n" "${instcfg[PREFIX]}/bin/trustbridge" |
142 getxt "Press enter to launch '%s'\n" "${instcfg[PREFIX]}/bin/trustbridge" | 140 getxt "or press Control-C to quit the installer.\n" |
143 getxt "or press Control-C to quit the installer.\n" | 141 read |
144 read | 142 "${instcfg[PREFIX]}/bin/trustbridge" & |
145 $RUNCMD "${instcfg[PREFIX]}/bin/trustbridge" & | 143 else |
146 else | 144 getxt "You can now launch '%s'\n" "${instcfg[PREFIX]}/bin/trustbridge" |
147 $RUNCMD "${instcfg[PREFIX]}/bin/trustbridge" --tray & | |
148 fi | |
149 fi | 145 fi |
150 } | 146 } |
151 | 147 |
152 cleanup() | 148 cleanup() |
153 { | 149 { |