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:
parent
a45247206a
commit
7aae2cf1f2
4 changed files with 11 additions and 6 deletions
|
@ -64,7 +64,12 @@ ram.runtime = "200M"
|
||||||
smtp.default = 20001
|
smtp.default = 20001
|
||||||
|
|
||||||
[resources.apt]
|
[resources.apt]
|
||||||
packages = ["sogo", "stunnel4", "memcached"]
|
packages = [
|
||||||
|
"sogo",
|
||||||
|
"stunnel4",
|
||||||
|
"memcached",
|
||||||
|
"mariadb-server",
|
||||||
|
]
|
||||||
|
|
||||||
[resources.database]
|
[resources.database]
|
||||||
type = "mysql"
|
type = "mysql"
|
||||||
|
|
|
@ -15,9 +15,9 @@ source /usr/share/yunohost/helpers
|
||||||
ynh_script_progression --message="Removing system configurations related to $app..." --weight=1
|
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`)
|
# 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
|
if ynh_exec_warn_less yunohost service status "sogo" >/dev/null; then
|
||||||
ynh_script_progression --message="Removing $app service integration..." --weight=1
|
ynh_script_progression --message="Removing sogo service integration..." --weight=1
|
||||||
yunohost service remove "$app"
|
yunohost service remove "sogo"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Remove the dedicated systemd config
|
# Remove the dedicated systemd config
|
||||||
|
|
|
@ -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"
|
ynh_restore_file --origin_path="/etc/nginx/conf.d/$domain.d/$app.conf"
|
||||||
|
|
||||||
systemctl enable "$app.service" --quiet
|
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
|
ynh_use_logrotate --logfile="/var/log/$app/sogo.log" --nonappend
|
||||||
|
|
||||||
|
|
|
@ -60,7 +60,7 @@ ynh_script_progression --message="Upgrading system configurations related to $ap
|
||||||
|
|
||||||
config_nginx
|
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)
|
# Use logrotate to manage app-specific logfile(s)
|
||||||
ynh_use_logrotate --logfile="/var/log/$app/sogo.log" --nonappend
|
ynh_use_logrotate --logfile="/var/log/$app/sogo.log" --nonappend
|
||||||
|
|
Loading…
Add table
Reference in a new issue