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

Fix/restore (#37)

restore
This commit is contained in:
Clément 2017-12-03 15:16:37 +01:00 committed by GitHub
parent 71003268eb
commit bb23e85824
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 3 deletions

View file

@ -15,7 +15,7 @@ domain=$(ynh_app_setting_get "$app" domain)
ynh_backup "$path" "www"
# Backup conf files
ynh_backup "/etc/nginx/conf.d/$domain.d/$app.conf" "nginx.conf"
ynh_backup "/etc/cron.d/$app" "$app.cron"
ynh_backup "/etc/cron.d/$app" "cron"
# Backup mysql
ynh_mysql_dump_db $app > $app.dmp

View file

@ -29,8 +29,8 @@ sudo chown -R www-data: $final_path/data/
sudo chown -R www-data: $final_path/extensions/
# Restore conf files
ynh_backup nginx.conf /etc/nginx/conf.d/$domain.d/$app.conf
ynh_backup $app.cron /etc/cron.d/$app
ynh_restore_file "/etc/nginx/conf.d/$domain.d/$app.conf"
ynh_restore_file "/etc/cron.d/$app"
# Restore mysql dump
ynh_mysql_create_db "$db_name" "$db_user" "$db_pass"