[Fusionforge-commits] r11870 - branches/Branch_5_1/src/utils

Roland Mas lolando at libremir.placard.fr.eu.org
Tue Dec 21 17:10:31 CET 2010


Author: lolando
Date: 2010-12-21 17:10:30 +0100 (Tue, 21 Dec 2010)
New Revision: 11870

Modified:
   branches/Branch_5_1/src/utils/manage-apache-config.sh
   branches/Branch_5_1/src/utils/migrate-to-ini-files.sh
Log:
Create dirs if needed

Modified: branches/Branch_5_1/src/utils/manage-apache-config.sh
===================================================================
--- branches/Branch_5_1/src/utils/manage-apache-config.sh	2010-12-21 15:54:36 UTC (rev 11869)
+++ branches/Branch_5_1/src/utils/manage-apache-config.sh	2010-12-21 16:10:30 UTC (rev 11870)
@@ -61,6 +61,7 @@
 	
     install)
 	dir=$(forge_get_config config_path)/httpd.conf.d
+	[ -e $dir ] || mkdir -p $dir
 	cd $dir
 	files=$(ls *.inc *.conf | xargs grep -l {[a-z_]*/[a-z_]*})
 	vars=$(forge_get_config list-all-variables)

Modified: branches/Branch_5_1/src/utils/migrate-to-ini-files.sh
===================================================================
--- branches/Branch_5_1/src/utils/migrate-to-ini-files.sh	2010-12-21 15:54:36 UTC (rev 11869)
+++ branches/Branch_5_1/src/utils/migrate-to-ini-files.sh	2010-12-21 16:10:30 UTC (rev 11870)
@@ -9,6 +9,8 @@
     config_path=$config_dir
 fi
 
+[ -e $config_path ] || mkdir -p $config_path
+
 add_config () {
     section=$1
     var=$2




More information about the Fusionforge-commits mailing list