mirror of
https://github.com/YunoHost-Apps/deluge_ynh.git
synced 2024-09-03 18:25:52 +02:00
fix
This commit is contained in:
parent
5233d6b880
commit
0548b8bd4a
3 changed files with 12 additions and 0 deletions
|
@ -27,11 +27,18 @@ ynh_backup --src_path="$install_dir"
|
||||||
|
|
||||||
ynh_backup --src_path="/etc/nginx/conf.d/$domain.d/$app.conf"
|
ynh_backup --src_path="/etc/nginx/conf.d/$domain.d/$app.conf"
|
||||||
|
|
||||||
|
#=================================================
|
||||||
|
# BACKUP LOGROTATE
|
||||||
|
#=================================================
|
||||||
|
|
||||||
|
ynh_backup --src_path="/etc/logrotate.d/$app"
|
||||||
|
|
||||||
#=================================================
|
#=================================================
|
||||||
# BACKUP SYSTEMD
|
# BACKUP SYSTEMD
|
||||||
#=================================================
|
#=================================================
|
||||||
|
|
||||||
ynh_backup --src_path="/etc/systemd/system/$app.service"
|
ynh_backup --src_path="/etc/systemd/system/$app.service"
|
||||||
|
ynh_backup --src_path="/etc/systemd/system/${app}-web.service"
|
||||||
|
|
||||||
#=================================================
|
#=================================================
|
||||||
# END OF SCRIPT
|
# END OF SCRIPT
|
||||||
|
|
|
@ -24,6 +24,9 @@ ynh_add_systemd_config --service="${app}-web" --template="deluge-web.service"
|
||||||
yunohost service add $app --description="Lightweight BitTorrent client" --log="/var/log/$app/$app.log"
|
yunohost service add $app --description="Lightweight BitTorrent client" --log="/var/log/$app/$app.log"
|
||||||
yunohost service add ${app}-web --description="BitTorrent UI" --log="/var/log/$app/$app.log"
|
yunohost service add ${app}-web --description="BitTorrent UI" --log="/var/log/$app/$app.log"
|
||||||
|
|
||||||
|
# Use logrotate to manage application logfile(s)
|
||||||
|
ynh_use_logrotate
|
||||||
|
|
||||||
mkdir -p /var/log/$app
|
mkdir -p /var/log/$app
|
||||||
chown -R $app:$app /var/log/$app
|
chown -R $app:$app /var/log/$app
|
||||||
chmod -R 750 /var/log/$app
|
chmod -R 750 /var/log/$app
|
||||||
|
|
|
@ -33,6 +33,8 @@ ynh_remove_systemd_config
|
||||||
|
|
||||||
ynh_remove_nginx_config
|
ynh_remove_nginx_config
|
||||||
|
|
||||||
|
ynh_remove_logrotate
|
||||||
|
|
||||||
ynh_secure_remove --file="/var/log/$app"
|
ynh_secure_remove --file="/var/log/$app"
|
||||||
|
|
||||||
#=================================================
|
#=================================================
|
||||||
|
|
Loading…
Reference in a new issue