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

Fix linter issues

This commit is contained in:
Félix Piédallu 2024-01-31 10:33:23 +01:00
parent a45247206a
commit 7aae2cf1f2
4 changed files with 11 additions and 6 deletions

View file

@ -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"

View file

@ -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

View file

@ -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

View file

@ -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