[Fusionforge-commits] r9944 - trunk/gforge/utils

Roland Mas lolando at libremir.placard.fr.eu.org
Fri May 28 11:05:10 CEST 2010


Author: lolando
Date: 2010-05-28 11:05:10 +0200 (Fri, 28 May 2010)
New Revision: 9944

Modified:
   trunk/gforge/utils/migrate-to-ini-files.sh
Log:
Generated *.ini files go to their proper place

Modified: trunk/gforge/utils/migrate-to-ini-files.sh
===================================================================
--- trunk/gforge/utils/migrate-to-ini-files.sh	2010-05-28 09:02:28 UTC (rev 9943)
+++ trunk/gforge/utils/migrate-to-ini-files.sh	2010-05-28 09:05:10 UTC (rev 9944)
@@ -3,6 +3,7 @@
 set -e
 
 lastsection=''
+config_path=$(forge_get_config config_path)
 
 add_config () {
     section=$1
@@ -133,8 +134,8 @@
 add_config scmsvn use_ssh >> $tmp
 add_config scmsvn use_ssl >> $tmp
 
-mv $tmp /etc/fusionforge/config.ini.d/zzz-migrated-old-config.ini
-chmod 644 /etc/fusionforge/config.ini.d/zzz-migrated-old-config.ini
+mv $tmp $config_path/config.ini.d/zzz-migrated-old-config.ini
+chmod 644 $config_path/config.ini.d/zzz-migrated-old-config.ini
 
 tmp=$(mktemp)
 cat > $tmp <<EOF
@@ -158,5 +159,5 @@
 add_config core ldap_version >> $tmp
 add_config core session_key >> $tmp
 
-mv $tmp /etc/fusionforge/config.ini.d/zzz-migrated-old-secrets.ini
-chmod 600 /etc/fusionforge/config.ini.d/zzz-migrated-old-secrets.ini
+mv $tmp $config_path/config.ini.d/zzz-migrated-old-secrets.ini
+chmod 600 $config_path/config.ini.d/zzz-migrated-old-secrets.ini




More information about the Fusionforge-commits mailing list