overleaf/server-ce/bin/grunt
2021-07-12 17:25:44 +01:00

33 lines
557 B
Bash

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