Add configuration for AutoCleanUp service (#143)

This commit is contained in:
Evgeniy Antonyuk 2022-03-16 13:19:46 +03:00 committed by GitHub
parent 786b8d2614
commit 39ed0cd26b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 4 additions and 0 deletions

View File

@ -1096,6 +1096,7 @@ systemctl stop onlyofficeStorageMigrate
systemctl stop onlyofficeStorageEncryption
systemctl stop onlyofficeUrlShortener
systemctl stop onlyofficeThumbnailBuilder
systemctl stop onlyofficeAutoCleanUp
systemctl stop god
systemctl enable god
@ -1142,6 +1143,7 @@ if [ "${APP_SERVICES_EXTERNAL}" == "true" ]; then
systemctl disable onlyofficeStorageEncryption.service
systemctl disable onlyofficeUrlShortener.service
systemctl disable onlyofficeThumbnailBuilder.service
systemctl disable onlyofficeAutoCleanUp.service
rm -f /lib/systemd/system/onlyofficeRadicale.service
rm -f /lib/systemd/system/onlyofficeTelegram.service
@ -1160,6 +1162,7 @@ if [ "${APP_SERVICES_EXTERNAL}" == "true" ]; then
rm -f /lib/systemd/system/onlyofficeStorageEncryption.sevice
rm -f /lib/systemd/system/onlyofficeUrlShortener.service
rm -f /lib/systemd/system/onlyofficeThumbnailBuilder.service
rm -f /lib/systemd/system/onlyofficeAutoCleanUp.service
sed '/onlyoffice/d' -i ${APP_CRON_PATH}
else
@ -1180,6 +1183,7 @@ else
systemctl enable onlyofficeStorageEncryption.service
systemctl enable onlyofficeUrlShortener.service
systemctl enable onlyofficeThumbnailBuilder.service
systemctl enable onlyofficeAutoCleanUp.service
fi
if [ "${APP_MODE}" == "SERVER" ]; then