Commits

Anonymous committed 9b7a3de

Fixed bug in create_apache_vhost_conf.sh when numbers occur in settings modules

  • Participants
  • Parent commits 8a7c9a5

Comments (0)

Files changed (1)

scripts/create_apache_vhost_conf.sh

 EOF
 
         # Environment settings
-        for settings in $django_project_dir/settings/env/[a-z_]*py; do
+        for settings in $django_project_dir/settings/env/[a-z0-9_]*py; do
             if [ `basename $settings` = "__init__.py" -o ! -f "$settings" ]; then
                 continue
             fi
 
             django_project_dir=`echo $settings | sed "s#/settings/env/.*py##"`
             django_project=`basename $django_project_dir`
-            django_settings=`echo $settings | sed "s#$PROJECT_ROOT/##" | sed "s#[a-z_]*/settings/env/#settings.env.#" | sed 's#.py$##'`
+            django_settings=`echo $settings | sed "s#$PROJECT_ROOT/##" | sed "s#[a-z0-9_]*/settings/env/#settings.env.#" | sed 's#.py$##'`
             django_settings_id=`echo $django_settings | sed "s#.*\\.##"`
 
             echo '#' $django_project $django_settings