mirror of
https://github.com/YunoHost-Apps/freshrss_ynh.git
synced 2024-09-03 18:36:33 +02:00
problem with cron restore
This commit is contained in:
parent
82cf73c0b4
commit
a0b5f921d7
3 changed files with 3 additions and 3 deletions
|
@ -15,7 +15,7 @@ domain=$(ynh_app_setting_get "$app" domain)
|
||||||
ynh_backup "$path" "www"
|
ynh_backup "$path" "www"
|
||||||
# Backup conf files
|
# Backup conf files
|
||||||
ynh_backup "/etc/nginx/conf.d/$domain.d/$app.conf" "nginx.conf"
|
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
|
# Backup mysql
|
||||||
ynh_mysql_dump_db $app > $app.dmp
|
ynh_mysql_dump_db $app > $app.dmp
|
||||||
|
|
|
@ -74,7 +74,7 @@ sudo cp ../conf/nginx.conf /etc/nginx/conf.d/$domain.d/$app.conf
|
||||||
|
|
||||||
#install update cron
|
#install update cron
|
||||||
# Add cron job
|
# Add cron job
|
||||||
cron_path="/etc/cron.d/$app.cron"
|
cron_path="/etc/cron.d/$app"
|
||||||
sed -i "s@#DESTDIR#@${FINAL_PATH}@g" ../conf/freshrss.cron
|
sed -i "s@#DESTDIR#@${FINAL_PATH}@g" ../conf/freshrss.cron
|
||||||
sudo cp ../conf/freshrss.cron "$cron_path"
|
sudo cp ../conf/freshrss.cron "$cron_path"
|
||||||
sudo chmod 644 "$cron_path"
|
sudo chmod 644 "$cron_path"
|
||||||
|
|
|
@ -30,7 +30,7 @@ sudo chown -R www-data: $final_path/extensions/
|
||||||
|
|
||||||
# Restore conf files
|
# Restore conf files
|
||||||
ynh_restore_file "/etc/nginx/conf.d/$domain.d/$app.conf"
|
ynh_restore_file "/etc/nginx/conf.d/$domain.d/$app.conf"
|
||||||
ynh_restore_file "/etc/cron.d/$app.cron"
|
ynh_restore_file "/etc/cron.d/$app"
|
||||||
|
|
||||||
# Restore mysql dump
|
# Restore mysql dump
|
||||||
ynh_mysql_create_db "$db_name" "$db_user" "$db_pass"
|
ynh_mysql_create_db "$db_name" "$db_user" "$db_pass"
|
||||||
|
|
Loading…
Add table
Reference in a new issue