Merge pull request #14 from alexAubin/enh-641-create-vagrant-user-on-vps

[enh] Automatically create user vagrant in use-git yunohost-admin
This commit is contained in:
Alexandre Aubin 2016-12-07 21:07:28 +01:00 committed by GitHub
commit 208183eb6f

View file

@ -271,6 +271,13 @@ elif [ "$1" = "use-git" ]; then
;; ;;
yunohost-admin) yunohost-admin)
# Trick to check vagrant user exists (for install on VPS..)
getent passwd vagrant > /dev/null
if [ $? -eq 2 ]; then
useradd vagrant
chown -R vagrant: /vagrant/yunohost-admin
fi
# Install npm dependencies if needed # Install npm dependencies if needed
which gulp > /dev/null which gulp > /dev/null
if [ $? -eq 1 ] if [ $? -eq 1 ]