From 65d81c6345e4be56963080524da39df20a25b53d Mon Sep 17 00:00:00 2001 From: lapineige Date: Wed, 22 May 2019 09:59:45 +0200 Subject: [PATCH] Remove useless sudo The script is run as root --- scripts/upgrade | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/scripts/upgrade b/scripts/upgrade index b29b33f..5c84798 100644 --- a/scripts/upgrade +++ b/scripts/upgrade @@ -86,8 +86,8 @@ ynh_secure_remove "$final_path" ynh_print_info "Upgrading source files..." # Download, check integrity, uncompress and patch the source from app.src ynh_setup_source "$final_path" -sudo cp -a "$tmpdir/data" "${final_path}/" -sudo rm -Rf "$tmpdir" +cp -a "$tmpdir/data" "${final_path}/" +rm -Rf "$tmpdir" #================================================= # NGINX CONFIGURATION