diff --git a/scripts/_common.sh b/scripts/_common.sh index a2238f5..2f36635 100644 --- a/scripts/_common.sh +++ b/scripts/_common.sh @@ -30,8 +30,7 @@ exec_as() { if [[ $USER = $(whoami) ]]; then eval $@ else - # use sudo twice to be root and be allowed to use another user - sudo sudo -u "$USER" $@ + sudo -u "$USER" $@ fi } diff --git a/scripts/upgrade b/scripts/upgrade index e4d7eff..6129e57 100755 --- a/scripts/upgrade +++ b/scripts/upgrade @@ -72,13 +72,6 @@ ynh_clean_setup () { # Exit if an error occurs during the execution of the script ynh_abort_if_errors -#================================================= -# CHECK THE PATH -#================================================= - -# Normalize the URL path syntax -path_url=$(ynh_normalize_url_path --path_url=$path_url) - #================================================= # STANDARD UPGRADE STEPS #=================================================