2021-07-12 12:24:29 -04:00
|
|
|
#!/bin/bash
|
|
|
|
# Thin wrapper on old grunt tasks to ease migrating.
|
|
|
|
|
|
|
|
set -e
|
|
|
|
TASK="$1"
|
|
|
|
shift 1
|
|
|
|
|
2021-07-13 12:03:14 -04:00
|
|
|
cd /var/www/sharelatex/web/modules/server-ce-scripts/scripts
|
|
|
|
|
2021-07-12 12:24:29 -04:00
|
|
|
case "$TASK" in
|
|
|
|
user:create-admin)
|
2021-07-13 12:03:14 -04:00
|
|
|
node create-admin "$@"
|
2021-07-12 12:24:29 -04:00
|
|
|
;;
|
|
|
|
|
|
|
|
user:delete)
|
2021-07-13 12:03:14 -04:00
|
|
|
node delete-user "$@"
|
2021-07-12 12:24:29 -04:00
|
|
|
;;
|
|
|
|
|
|
|
|
check:mongo)
|
2021-07-13 12:03:14 -04:00
|
|
|
node check-mongodb
|
2021-07-12 12:24:29 -04:00
|
|
|
;;
|
|
|
|
|
|
|
|
check:redis)
|
2021-07-13 12:03:14 -04:00
|
|
|
node check-redis
|
2021-07-12 12:24:29 -04:00
|
|
|
;;
|
|
|
|
|
|
|
|
*)
|
|
|
|
echo "Unknown task $TASK"
|
|
|
|
exit 1
|
|
|
|
;;
|
|
|
|
esac
|