diff --git a/scripts/_common.sh b/scripts/_common.sh index faab65e..24083aa 100644 --- a/scripts/_common.sh +++ b/scripts/_common.sh @@ -85,17 +85,3 @@ ynh_redis_remove_db() { redis-cli -n "$db" flushall } -#================================================= - -# 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 -}