diff --git a/scripts/_common.sh b/scripts/_common.sh index 3cc095a..9e39037 100644 --- a/scripts/_common.sh +++ b/scripts/_common.sh @@ -17,15 +17,3 @@ nodejs_version="12" #================================================= # FUTURE OFFICIAL HELPERS #================================================= - -# Execute a command as another user -# usage: ynh_exec_as USER COMMAND [ARG ...] -ynh_exec_as() { - local USER=$1 - shift 1 - - if [[ $USER = $(whoami) ]]; then - eval "$@" - else - sudo -u "$USER" "$@" - fi