1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/cryptpad_ynh.git synced 2024-09-03 18:26:14 +02:00

Update _common.sh

This commit is contained in:
ericgaspar 2021-01-22 18:18:49 +01:00
parent a388b98377
commit 05b13179da
No known key found for this signature in database
GPG key ID: 574F281483054D44

View file

@ -18,16 +18,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
}