From 9b6f9b14bcabc9796a0ef9066b60e85e384c41ff Mon Sep 17 00:00:00 2001 From: antoine Date: Sat, 7 Dec 2019 18:38:47 +0100 Subject: [PATCH] sudo is not necessary, script run as root --- scripts/upgrade | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/scripts/upgrade b/scripts/upgrade index 290185b..544775f 100644 --- a/scripts/upgrade +++ b/scripts/upgrade @@ -72,16 +72,16 @@ ynh_abort_if_errors ynh_print_info "Upgrading source files..." # Move old app dir -sudo mv ${final_path} ${final_path}.old +mv ${final_path} ${final_path}.old # Download, check integrity, uncompress and patch the source from app.src ynh_setup_source "$final_path" # restore data -sudo cp -a ${final_path}.old/data ${final_path} +cp -a ${final_path}.old/data ${final_path} # delete temp directory -sudo rm -Rf ${final_path}.old +rm -Rf ${final_path}.old #================================================= # NGINX CONFIGURATION @@ -133,7 +133,7 @@ ynh_store_file_checksum "$final_path/data/config.ini.php" # Set permissions on app files chown -R $app: $final_path -sudo chmod -R 700 $final_path/data +chmod -R 700 $final_path/data #================================================= # SETUP SSOWAT