mirror of
https://github.com/overleaf/overleaf.git
synced 2024-11-07 20:31:06 -05:00
[misc] move server-ce scripts into a module in web
This commit is contained in:
parent
afe2c9934d
commit
77cd7690fb
2 changed files with 9 additions and 11 deletions
14
server-ce/bin/grunt
Normal file → Executable file
14
server-ce/bin/grunt
Normal file → Executable file
|
@ -5,25 +5,23 @@ set -e
|
|||
TASK="$1"
|
||||
shift 1
|
||||
|
||||
cd /var/www/sharelatex/web/modules/server-ce-scripts/scripts
|
||||
|
||||
case "$TASK" in
|
||||
user:create-admin)
|
||||
cd /var/www/sharelatex/web
|
||||
node scripts/server-ce/create-admin "$@"
|
||||
node create-admin "$@"
|
||||
;;
|
||||
|
||||
user:delete)
|
||||
cd /var/www/sharelatex/web
|
||||
node scripts/server-ce/delete-user "$@"
|
||||
node delete-user "$@"
|
||||
;;
|
||||
|
||||
check:mongo)
|
||||
cd /var/www/sharelatex/web
|
||||
node scripts/server-ce/check-mongodb
|
||||
node check-mongodb
|
||||
;;
|
||||
|
||||
check:redis)
|
||||
cd /var/www/sharelatex/web
|
||||
node scripts/server-ce/check-redis
|
||||
node check-redis
|
||||
;;
|
||||
|
||||
*)
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
set -e
|
||||
|
||||
echo "Checking can connect to mongo and redis"
|
||||
cd /var/www/sharelatex/web
|
||||
node scripts/server-ce/check-mongodb
|
||||
node scripts/server-ce/check-redis
|
||||
cd /var/www/sharelatex/web/modules/server-ce-scripts/scripts
|
||||
node check-mongodb
|
||||
node check-redis
|
||||
echo "All checks passed"
|
||||
|
|
Loading…
Reference in a new issue