This commit made it so that the script now extracts two different archive. One
authortilly-Q <nattilypigeonfowl@gmail.com>
Thu, 31 Oct 2013 21:10:03 +0000 (17:10 -0400)
committertilly-Q <nattilypigeonfowl@gmail.com>
Thu, 31 Oct 2013 21:10:03 +0000 (17:10 -0400)
for the chosen database, and one for the media to go in the UserDev directory.
This will make the mg-dev-example-environments branch more efficient.

devtools/make_example_database.sh

index 220d94f77ad3833fa5b792d60d98b62707cb5237..e6337d358bcf25f562e7f31a8630d072fbdb4f06 100755 (executable)
@@ -19,6 +19,7 @@
 USAGE="Usage: $0 -h | [-p PATH] -e ENVIRONMENT"
 
 ENVIRONMENT="migration-18"
+USER_DEV="user_dev_default"
 DEV_ENV_DIRECTORY_PATH="../mg-dev-environments"
 
 while getopts ":hp:e:" opt;
@@ -80,7 +81,7 @@ else
             y)
                 break
                 ;;
-            n) 
+            n)
                 exit 1
                 ;;
             *)
@@ -98,6 +99,7 @@ else
         esac
     done
     tar -xzf $DEV_ENV_DIRECTORY_PATH/$ENVIRONMENT.tar.gz
+    tar -xzf $DEV_ENV_DIRECTORY_PATH/$USER_DEV.tar.gz
     echo "Completed."
     exit 0
 fi