Mercurial > trustbridge
comparison packaging/linux-installer.inc @ 1194:292a25c34aff
(issue110) Remove installation_prefix dialog
author | Andre Heinecke <andre.heinecke@intevation.de> |
---|---|
date | Mon, 22 Sep 2014 16:32:00 +0200 |
parents | ec16e3d81278 |
children | 7b24109c1a55 |
comparison
equal
deleted
inserted
replaced
1193:ec16e3d81278 | 1194:292a25c34aff |
---|---|
298 # Stop after deinstallation: | 298 # Stop after deinstallation: |
299 exit 0 | 299 exit 0 |
300 fi | 300 fi |
301 | 301 |
302 if [ -z "${instcfg[PREFIX]}" ] ; then | 302 if [ -z "${instcfg[PREFIX]}" ] ; then |
303 | 303 instcfg[PREFIX]="${inst_default_prefix}" |
304 if [ "${oldinstcfg[PREFIX]}" ] ; then | |
305 inst_default_prefix="${oldinstcfg[PREFIX]}" | |
306 getxt "An existing installation (v%s) was detected!\n" "${oldinstcfg[VERSION]}" | |
307 getxt "It is HIGHLY RECOMMENDED to accept the default prefix\n" | |
308 getxt "to update the current installation.\n" | |
309 getxt "For a new prefix you should uninstall first!\n" | |
310 fi | |
311 until [ "${instcfg[PREFIX]}" ] ; do | |
312 getxt "Select installation prefix for TrustBridge [%s]: " "${inst_default_prefix}" | |
313 read -e instcfg[PREFIX] | |
314 if echo "${instcfg[PREFIX]}" | grep -q '[~$"\\]' ; then | |
315 getxt "\nWARNING: The given path name contains special characters\n" | |
316 getxt "(one or more of %s )\n" "~ $ \" \\" | |
317 getxt "Please note that these characters are not expanded by the installer,\n" | |
318 getxt "the installation directory will be containing these characters verbatim.\n\n" | |
319 getxt "Do you really want to use %s as installation prefix?\n" "${instcfg[PREFIX]}" | |
320 yorn || { instcfg[PREFIX]="" ; continue ; } | |
321 fi | |
322 [ -z "${instcfg[PREFIX]}" ] && instcfg[PREFIX]="${inst_default_prefix}" | |
323 done | |
324 else | 304 else |
325 # Prefix was given on invocation: | 305 # Prefix was given on invocation: |
326 if [ "${oldinstcfg[PREFIX]}" -a \ | 306 if [ "${oldinstcfg[PREFIX]}" -a \ |
327 "${instcfg[PREFIX]}" != "${oldinstcfg[PREFIX]}" -a \ | 307 "${instcfg[PREFIX]}" != "${oldinstcfg[PREFIX]}" -a \ |
328 $FORCE -ne 1 ] ; then | 308 $FORCE -ne 1 ] ; then |