1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/freshrss_ynh.git synced 2024-09-03 18:36:33 +02:00

makes /var/log/$app/freshrss.log backup conditionnal to its existence

This commit is contained in:
OniriCorpe 2024-03-21 01:50:42 +01:00
parent 24f62bb218
commit c2c1ae0a44

View file

@ -39,7 +39,9 @@ ynh_backup --src_path="/etc/php/$phpversion/fpm/pool.d/$app.conf"
ynh_backup --src_path="/var/log/nginx/$domain-access.log"
ynh_backup --src_path="/var/log/$app/freshrss.log"
if [ -f "/var/log/$app/freshrss.log" ]; then
ynh_backup --src_path="/var/log/$app/freshrss.log"
fi
#=================================================
# SPECIFIC BACKUP