[Fusionforge-commits] r8119 - branches/Branch_4_8/gforge/debian/dsf-helper

Roland Mas lolando at libremir.placard.fr.eu.org
Wed Sep 9 14:31:52 CEST 2009


Author: lolando
Date: 2009-09-09 14:31:51 +0200 (Wed, 09 Sep 2009)
New Revision: 8119

Modified:
   branches/Branch_4_8/gforge/debian/dsf-helper/common-variables.config
Log:
Stop overwriting local config on upgrades for domain_name and server_admin

Modified: branches/Branch_4_8/gforge/debian/dsf-helper/common-variables.config
===================================================================
--- branches/Branch_4_8/gforge/debian/dsf-helper/common-variables.config	2009-09-08 15:46:07 UTC (rev 8118)
+++ branches/Branch_4_8/gforge/debian/dsf-helper/common-variables.config	2009-09-09 12:31:51 UTC (rev 8119)
@@ -1,13 +1,13 @@
-db_fget gforge/shared/domain_name seen || true
-if [ "$RET" = "false" ] ; then
+db_get gforge/shared/domain_name || true
+if [ -z "$RET" ] ; then
    hostname=$(hostname -f 2>/dev/null) || hostname=localhost
    db_set gforge/shared/domain_name $hostname
 fi
 db_input medium gforge/shared/domain_name || true
 db_go || true
 
-db_fget gforge/shared/server_admin seen || true
-if [ "$RET" = "false" ] ; then
+db_get gforge/shared/server_admin || true
+if [ -z "$RET" ] ; then
   db_get gforge/shared/domain_name || true
   db_set gforge/shared/server_admin "webmaster@$RET"
 fi




More information about the Fusionforge-commits mailing list