mirror of
https://github.com/YunoHost-Apps/diaspora_ynh.git
synced 2024-09-03 18:26:13 +02:00
Pour compatibilite Debian Jessie
This commit is contained in:
parent
0e4c539739
commit
f258f9177e
1 changed files with 9 additions and 0 deletions
9
scripts/install
Normal file → Executable file
9
scripts/install
Normal file → Executable file
|
@ -80,8 +80,17 @@ sudo chown -R diaspora:diaspora $final_path
|
|||
sudo su - diaspora -c "curl -sSL https://rvm.io/mpapis.asc | gpg --import - ; curl -L dspr.tk/1t | bash;"
|
||||
#sudo su - diaspora -c "rvm autolibs read-fail ; rvm install 2.0 ; rvm use 2.0.0 --default"
|
||||
|
||||
#add user to sudoers for install
|
||||
DIASPORASUDOERSCONF="diaspora ALL=(ALL:ALL) NOPASSWD: ALL #yunhost_diaspora"
|
||||
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.0"
|
||||
|
||||
#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"
|
||||
|
|
Loading…
Add table
Reference in a new issue