1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/sogo_ynh.git synced 2024-09-03 20:26:07 +02:00

Register SOGo in yunohost service

This commit is contained in:
Josué Tille 2020-05-24 00:32:03 +02:00
parent 34bfff4dd4
commit 3f643ca043
No known key found for this signature in database
GPG key ID: 716A6C99B04194EF
4 changed files with 12 additions and 0 deletions

View file

@ -94,6 +94,9 @@ python3 add_sso_conf.py
ynh_script_progression --message="Configuring log rotation..."
ynh_use_logrotate --logfile /var/log/$app/sogo.log --nonappend
# Register service
yunohost service add $app --log "/var/log/$app/sogo.log"
# Restart services
ynh_script_progression --message="Starting sogo services..." --weight=3
systemctl restart sogo

View file

@ -51,6 +51,9 @@ ynh_secure_remove --file="/etc/stunnel/$app.conf"
# Remove custom SSO config
python3 remove_sso_conf.py
# Remove service
yunohost service remove $app
# Remove the app-specific logrotate config
ynh_remove_logrotate

View file

@ -60,6 +60,9 @@ python3 ../settings/scripts/add_sso_conf.py
# SETUP LOGROTATE
ynh_use_logrotate --logfile /var/log/$app/sogo.log --nonappend
# Register service
yunohost service add $app --log "/var/log/$app/sogo.log"
# Restart services
ynh_script_progression --message="Starting SOGo services..." --weight=3
systemctl restart sogo

View file

@ -118,6 +118,9 @@ python3 add_sso_conf.py
ynh_script_progression --message="Configuring log rotation..."
ynh_use_logrotate --logfile /var/log/$app/sogo.log --nonappend
# Register service
yunohost service add $app --log "/var/log/$app/sogo.log"
# Restart services
ynh_script_progression --message="Starting SOGo services..." --weight=3
systemctl restart sogo