diff --git a/manifest.toml b/manifest.toml index 42fbad1..c4b8abd 100644 --- a/manifest.toml +++ b/manifest.toml @@ -64,7 +64,12 @@ ram.runtime = "200M" smtp.default = 20001 [resources.apt] - packages = ["sogo", "stunnel4", "memcached"] + packages = [ + "sogo", + "stunnel4", + "memcached", + "mariadb-server", + ] [resources.database] type = "mysql" diff --git a/scripts/remove b/scripts/remove index ec48029..1f411fc 100755 --- a/scripts/remove +++ b/scripts/remove @@ -15,9 +15,9 @@ source /usr/share/yunohost/helpers ynh_script_progression --message="Removing system configurations related to $app..." --weight=1 # Remove the service from the list of services known by YunoHost (added from `yunohost service add`) -if ynh_exec_warn_less yunohost service status "$app" >/dev/null; then - ynh_script_progression --message="Removing $app service integration..." --weight=1 - yunohost service remove "$app" +if ynh_exec_warn_less yunohost service status "sogo" >/dev/null; then + ynh_script_progression --message="Removing sogo service integration..." --weight=1 + yunohost service remove "sogo" fi # Remove the dedicated systemd config diff --git a/scripts/restore b/scripts/restore index dd1e68f..1a033e4 100755 --- a/scripts/restore +++ b/scripts/restore @@ -45,7 +45,7 @@ ynh_script_progression --message="Restoring system configurations related to $ap ynh_restore_file --origin_path="/etc/nginx/conf.d/$domain.d/$app.conf" systemctl enable "$app.service" --quiet -yunohost service add "$app" --description="Groupware for E-Mail, Contacts and Calender" --log="/var/log/$app/$app.log" +yunohost service add "sogo" --description="Groupware for E-Mail, Contacts and Calender" --log="/var/log/$app/$app.log" ynh_use_logrotate --logfile="/var/log/$app/sogo.log" --nonappend diff --git a/scripts/upgrade b/scripts/upgrade index c8cb178..62d5b1b 100755 --- a/scripts/upgrade +++ b/scripts/upgrade @@ -60,7 +60,7 @@ ynh_script_progression --message="Upgrading system configurations related to $ap config_nginx -yunohost service add "$app" --description="Groupware for E-Mail, Contacts and Calender" --log="/var/log/$app/$app.log" +yunohost service add "sogo" --description="Groupware for E-Mail, Contacts and Calender" --log="/var/log/$app/$app.log" # Use logrotate to manage app-specific logfile(s) ynh_use_logrotate --logfile="/var/log/$app/sogo.log" --nonappend