forked from overleaf/overleaf
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathgrunt
More file actions
executable file
·36 lines (29 loc) · 1 KB
/
grunt
File metadata and controls
executable file
·36 lines (29 loc) · 1 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
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"
exec /sbin/setuser www-data 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"
exec /sbin/setuser www-data 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"
exec /sbin/setuser www-data 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"
exec /sbin/setuser www-data node modules/server-ce-scripts/scripts/check-redis.mjs
;;
*)
echo "Unknown task $TASK"
exit 1
;;
esac