mirror of
https://github.com/overleaf/overleaf.git
synced 2024-11-29 23:55:33 -05:00
13 lines
398 B
Text
13 lines
398 B
Text
|
#!/bin/bash
|
||
|
|
||
|
set -e
|
||
|
|
||
|
# pre-shutdown scripts close the site by overriding the content of SITE_MAINTENANCE_FILE,
|
||
|
# this script restores the original value on container restart
|
||
|
SITE_MAINTENANCE_FILE_BAK="$SITE_MAINTENANCE_FILE.bak.shutdown"
|
||
|
|
||
|
if [ -f "${SITE_MAINTENANCE_FILE_BAK}" ]; then
|
||
|
mv -f "${SITE_MAINTENANCE_FILE_BAK}" "${SITE_MAINTENANCE_FILE}"
|
||
|
rm -f "${SITE_MAINTENANCE_FILE_BAK}"
|
||
|
fi
|