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

enlarge install sudo scope

This commit is contained in:
Développeur égaré 2015-06-09 16:39:25 +02:00
parent a950d3532e
commit a378426f87

View file

@ -86,15 +86,13 @@ sudo cat /etc/sudoers | grep yunhost_diaspora -q
if [ $? != 0 ] ; then sudo su -c "echo '$DIASPORASUDOERSCONF' >>/etc/sudoers" ; fi
sudo su - diaspora -c "rvm install 2.1"
sudo su - diaspora -c "env REALLY_GEM_UPDATE_SYSTEM=1 gem update --system --no-user-install"
sudo su - diaspora -c "gem install bundler"
#rm user from sudoers
sudo cat /etc/sudoers | grep yunhost_diaspora -q
if [ $? == 0 ] ; then sudo sed -i '/yunhost_diaspora/d' /etc/sudoers ; fi
#sudo env REALLY_GEM_UPDATE_SYSTEM=1 gem update --system --no-user-install
sudo su - diaspora -c "env REALLY_GEM_UPDATE_SYSTEM=1 gem update --system --no-user-install"
sudo su - diaspora -c "gem install bundler"
# construct diaspora app
sudo su - diaspora -c "RAILS_ENV=production bundle install --without test development --retry 5"
sudo su - diaspora -c "RAILS_ENV=production bundle exec rake db:create db:schema:load"