mirror of
https://github.com/overleaf/overleaf.git
synced 2024-12-04 21:34:53 -05:00
c41c14c697
GitOrigin-RevId: 2b19d73c593545aaa9f6eb88143d08c5df39a1be
36 lines
900 B
Bash
Executable file
36 lines
900 B
Bash
Executable file
#!/bin/bash
|
|
# Thin wrapper on old grunt tasks to ease migrating.
|
|
|
|
set -e
|
|
set -x
|
|
TASK="$1"
|
|
shift 1
|
|
|
|
cd /overleaf/services/web
|
|
|
|
case "$TASK" in
|
|
user:create-admin)
|
|
echo "The grunt command is deprecated, run the create-user script using node instead"
|
|
node modules/server-ce-scripts/scripts/create-user --admin "$@"
|
|
;;
|
|
|
|
user:delete)
|
|
echo "The grunt command is deprecated, run the delete-user script using node instead"
|
|
node modules/server-ce-scripts/scripts/delete-user "$@"
|
|
;;
|
|
|
|
check:mongo)
|
|
echo "The grunt command is deprecated, run the check-mongodb script using node instead"
|
|
node modules/server-ce-scripts/scripts/check-mongodb
|
|
;;
|
|
|
|
check:redis)
|
|
echo "The grunt command is deprecated, run the check-redis script using node instead"
|
|
node modules/server-ce-scripts/scripts/check-redis
|
|
;;
|
|
|
|
*)
|
|
echo "Unknown task $TASK"
|
|
exit 1
|
|
;;
|
|
esac
|