Skip to content
Permalink
Browse files

Add new --styles command line option which runs the enhanced-styles-u…

…pdate drush command
  • Loading branch information...
kzalewski committed Dec 17, 2018
1 parent a852bc7 commit ae9a09c7fa5476a0e2f7a280e8269a77a39bc59b
Showing with 8 additions and 1 deletion.
  1. +8 −1 bin/website_cron.sh
@@ -20,6 +20,7 @@
# Revised: 2017-10-10 - Add --accum option to run Drupal accumulator integrity
# Revised: 2018-02-22 - Add new process-queues drush command
# Revised: 2018-05-01 - Add --import-all and --import-leg options
# Revised: 2018-12-14 - Add --styles to update styles
#

PATH=$PATH:/usr/local/bin
@@ -29,7 +30,7 @@ prog=`basename $0`
penv=$DEFAULT_ENV

usage() {
echo "Usage: $prog [--import-all | --import-leg | --qa | --maint | --accum | --update-statutes | --disqus] [--arg drush_arg [--arg drush_arg ...]] [--help] [environ]" >&2
echo "Usage: $prog [--import-all | --import-leg | --qa | --maint | --accum | --update-statutes | --disqus | --styles] [--arg drush_arg [--arg drush_arg ...]] [--help] [environ]" >&2
echo " where 'environ' is typically one of: live, test, dev" >&2
}

@@ -54,6 +55,7 @@ while [ $# -gt 0 ]; do
--accum) mode=accum ;;
--update-statutes|--uas) mode=uas ;;
--disqus) mode=disqus ;;
--styles|--esu) mode=esu ;;
--arg) shift; drush_args="$drush_args $1" ;;
--help|-h) usage; exit 0 ;;
-*) echo "$prog: $1: Invalid option" >&2; exit 1 ;;
@@ -81,6 +83,11 @@ elif [ "$mode" = "disqus" ]; then
echo "About to run Disqus integration"
pdrush @$penv disqus-identifier-migration

elif [ "$mode" = "esu" ]; then

echo "About to update enhanced styles"
pdrush @$penv enhanced-styles-update

elif [ "$mode" = "maint" ]; then

echo "About to run Drupal maintenance tasks (module crons)"

0 comments on commit ae9a09c

Please sign in to comment.
You can’t perform that action at this time.