first commit
This commit is contained in:
36
server-ce/bin/grunt
Executable file
36
server-ce/bin/grunt
Executable file
@@ -0,0 +1,36 @@
|
||||
#!/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.mjs --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.mjs "$@"
|
||||
;;
|
||||
|
||||
check:mongo)
|
||||
echo "The grunt command is deprecated, run the check-mongodb script using node instead"
|
||||
node modules/server-ce-scripts/scripts/check-mongodb.mjs
|
||||
;;
|
||||
|
||||
check:redis)
|
||||
echo "The grunt command is deprecated, run the check-redis script using node instead"
|
||||
node modules/server-ce-scripts/scripts/check-redis.mjs
|
||||
;;
|
||||
|
||||
*)
|
||||
echo "Unknown task $TASK"
|
||||
exit 1
|
||||
;;
|
||||
esac
|
Reference in New Issue
Block a user