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