mirror of
https://github.com/overleaf/overleaf.git
synced 2024-12-23 16:04:38 +00:00
d5dd92c034
[misc] align directory layout of server-ce/pro with production docker images GitOrigin-RevId: d3e6b9f8793e83df59f86105d511c6fb87c3eea3
31 lines
531 B
Bash
Executable file
31 lines
531 B
Bash
Executable file
#!/bin/bash
|
|
# Thin wrapper on old grunt tasks to ease migrating.
|
|
|
|
set -e
|
|
TASK="$1"
|
|
shift 1
|
|
|
|
cd /overleaf/services/web
|
|
|
|
case "$TASK" in
|
|
user:create-admin)
|
|
node modules/server-ce-scripts/scripts/create-user --admin "$@"
|
|
;;
|
|
|
|
user:delete)
|
|
node modules/server-ce-scripts/scripts/delete-user "$@"
|
|
;;
|
|
|
|
check:mongo)
|
|
node modules/server-ce-scripts/scripts/check-mongodb
|
|
;;
|
|
|
|
check:redis)
|
|
node modules/server-ce-scripts/scripts/check-redis
|
|
;;
|
|
|
|
*)
|
|
echo "Unknown task $TASK"
|
|
exit 1
|
|
;;
|
|
esac
|