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:
parent
34bfff4dd4
commit
3f643ca043
4 changed files with 12 additions and 0 deletions
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue