diff options
| author | yalh76 <yalh@yahoo.com> | 2019-04-06 16:08:48 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2019-04-06 16:08:48 +0200 |
| commit | bf9a8b1063ae3bcd8e96a2dd14dfb22a5af4bcfe (patch) | |
| tree | c3f01d8ac1be766d8af699c9cb195b3dcfa3ef9a /scripts/_common.sh | |
| parent | 271a88b3f3494bf6910363ada845ad824295fc1d (diff) | |
| download | mastodon_ynh-bf9a8b1063ae3bcd8e96a2dd14dfb22a5af4bcfe.tar.gz mastodon_ynh-bf9a8b1063ae3bcd8e96a2dd14dfb22a5af4bcfe.tar.bz2 mastodon_ynh-bf9a8b1063ae3bcd8e96a2dd14dfb22a5af4bcfe.zip | |
Additional
* Implement ynh_systemd_action
* Implement ynh_add_secure_repos__3
Diffstat (limited to 'scripts/_common.sh')
| -rw-r--r-- | scripts/_common.sh | 15 |
1 files changed, 0 insertions, 15 deletions
diff --git a/scripts/_common.sh b/scripts/_common.sh index d0c5b58..79dc04c 100644 --- a/scripts/_common.sh +++ b/scripts/_common.sh @@ -20,21 +20,6 @@ pkg_dependencies="imagemagick libpq-dev libxml2-dev libxslt1-dev file curl apt-t # FUTURE OFFICIAL HELPERS #================================================= -# Execute a command as another user -# usage: exec_as USER COMMAND [ARG ...] -exec_as() { - local user=$1 - shift 1 - - if [[ $user = $(whoami) ]]; then - eval "$@" - else - sudo --login --user="$user" "$@" - fi -} - - - # Send an email to inform the administrator # # usage: ynh_send_readme_to_admin app_message [recipients] |
