mirror of
https://github.com/overleaf/overleaf.git
synced 2024-11-07 20:31:06 -05:00
31 lines
430 B
Bash
Executable file
31 lines
430 B
Bash
Executable file
#!/bin/bash
|
|
# Thin wrapper on old grunt tasks to ease migrating.
|
|
|
|
set -e
|
|
TASK="$1"
|
|
shift 1
|
|
|
|
cd /var/www/sharelatex/web/modules/server-ce-scripts/scripts
|
|
|
|
case "$TASK" in
|
|
user:create-admin)
|
|
node create-user --admin "$@"
|
|
;;
|
|
|
|
user:delete)
|
|
node delete-user "$@"
|
|
;;
|
|
|
|
check:mongo)
|
|
node check-mongodb
|
|
;;
|
|
|
|
check:redis)
|
|
node check-redis
|
|
;;
|
|
|
|
*)
|
|
echo "Unknown task $TASK"
|
|
exit 1
|
|
;;
|
|
esac
|