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:
parent
a950d3532e
commit
a378426f87
1 changed files with 2 additions and 4 deletions
|
@ -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"
|
||||
|
|
Loading…
Reference in a new issue