From d4fe28e971ee9506144ff108830516cb3b0f3e9a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Cl=C3=A9ment?= Date: Sun, 8 Feb 2015 18:57:53 +0100 Subject: [PATCH] [fix]use sudo command to get permission --- scripts/upgrade | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/scripts/upgrade b/scripts/upgrade index 02cff7b..e45dbff 100755 --- a/scripts/upgrade +++ b/scripts/upgrade @@ -6,10 +6,10 @@ if [[ -f $final_path/data/dist_user.conf ]]; then rm $final_path/data/dist_user.conf fi #copy update script into freshrss path -cp update-ynh.php $final_path/ +sudo cp update-ynh.php $final_path/ #execute update sudo php $final_path/update-ynh.php -cp ../conf/dist_user.conf $final_path/data +sudo cp ../conf/dist_user.conf $final_path/data # Set permissions to freshrss directory sudo chown -R www-data: $final_path/data