mirror of
https://github.com/YunoHost/ynh-dev.git
synced 2024-09-03 20:05:59 +02:00
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:
commit
208183eb6f
1 changed files with 7 additions and 0 deletions
7
ynh-dev
7
ynh-dev
|
@ -271,6 +271,13 @@ elif [ "$1" = "use-git" ]; then
|
|||
;;
|
||||
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
|
||||
which gulp > /dev/null
|
||||
if [ $? -eq 1 ]
|
||||
|
|
Loading…
Add table
Reference in a new issue