New minimal dev-setup data set
Running `SHIELD_DATA_SET=minimal make dev` should provide you with a
SHIELD that has no real data in it.
@@ -38,6 +38,8 @@ buckler login --username failsafe --password sekrit 2>&1 | indent2
buckler id 2>&1 | indent2
+SHIELD_DATA_SET="${SHIELD_DATA_SET:-dev}"
+if [[ "$SHIELD_DATA_SET" == "dev" ]]; then # {{{
echo ; echo " - Setting up admin account"
buckler create-user \
--name Administrator \
@@ -307,6 +309,20 @@ sleep 3
echo ; echo " - running Hourly job again (should still fail)"
buckler run-job Hourly 2>&1 | indent4
sleep 3
+# }}}
+elif [[ "$SHIELD_DATA_SET" == "minimal" ]]; then
+ echo ; echo " - Setting up admin account"
+ buckler create-user \
+ --name Administrator \
+ --username admin \
+ --password admin \
+ --system-role admin \
+ 2>&1 | indent4
+
+ echo ; echo " - Logging in as admin:admin"
+ buckler login --username admin --password admin 2>&1 | indent4
+ buckler id 2>&1 | indent4
+fi
echo ; echo
echo ; echo "DONE"
