mirror of
https://github.com/overleaf/overleaf.git
synced 2024-11-21 20:47:08 -05:00
31 lines
423 B
Bash
Executable file
31 lines
423 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-admin "$@"
|
|
;;
|
|
|
|
user:delete)
|
|
node delete-user "$@"
|
|
;;
|
|
|
|
check:mongo)
|
|
node check-mongodb
|
|
;;
|
|
|
|
check:redis)
|
|
node check-redis
|
|
;;
|
|
|
|
*)
|
|
echo "Unknown task $TASK"
|
|
exit 1
|
|
;;
|
|
esac
|