From f95597f7607dccb68925e4f0334a9dbcf531dc53 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Cl=C3=A9ment?= Date: Mon, 9 Feb 2015 12:57:56 +0100 Subject: [PATCH] [fix]Looks like I can't write bash scripts.... --- scripts/upgrade | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/scripts/upgrade b/scripts/upgrade index 9643ce3..7eb4c0b 100755 --- a/scripts/upgrade +++ b/scripts/upgrade @@ -2,17 +2,15 @@ #backup data folder final_path=/var/www/freshrss # -#if [[ -f $final_path/data/dist_user.conf ]]; then -# rm $final_path/data/dist_user.conf -#fi +if [ -f $final_path/data/dist_user.conf ]; then + rm $final_path/data/dist_user.conf +fi #copy update script into freshrss path sudo cp update-ynh.php $final_path/ #execute update sudo php $final_path/update-ynh.php #remove update script sudo rm $final_path/update-ynh.php -#copy user default config -sudo cp ../conf/dist_user.conf $final_path/data/ # Set permissions to freshrss directory sudo chown -R www-data: $final_path/data/ sudo chown -R www-data: $final_path/extensions/ \ No newline at end of file