2020-10-29 00:24:34 +00:00
|
|
|
#!/usr/bin/env bash
|
|
|
|
|
|
|
|
## Description: Helper commands for the for theme
|
|
|
|
## Usage: app install|refresh
|
|
|
|
|
|
|
|
set -e
|
|
|
|
|
|
|
|
if [ $# -eq 0 ] ; then
|
|
|
|
echo 'No arguments entered.'
|
|
|
|
exit 1
|
|
|
|
fi
|
|
|
|
|
|
|
|
case $1 in
|
2020-10-29 12:13:10 +00:00
|
|
|
install)
|
2020-10-29 00:24:34 +00:00
|
|
|
drush site:install -y --account-pass=admin123 --existing-config
|
|
|
|
drush user:login
|
2020-10-29 12:10:44 +00:00
|
|
|
touch .flag-built
|
2020-10-29 00:24:34 +00:00
|
|
|
;;
|
|
|
|
|
2020-10-29 12:13:10 +00:00
|
|
|
refresh)
|
|
|
|
drush config-import -y
|
|
|
|
drush cache-rebuild
|
|
|
|
;;
|
|
|
|
|
2020-10-29 00:24:34 +00:00
|
|
|
*)
|
|
|
|
echo "Invalid argument: $1"
|
|
|
|
;;
|
|
|
|
esac
|