From caacfbffea33b11e3b90f91e28a3848c7b498e81 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?D=C3=A9veloppeur=20=C3=A9gar=C3=A9?= Date: Wed, 10 Jun 2015 11:58:45 +0200 Subject: [PATCH] add retry on gem install bundler --- scripts/install | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/install b/scripts/install index 5fd8c48..18dd6c9 100755 --- a/scripts/install +++ b/scripts/install @@ -86,7 +86,7 @@ if [ $? != 0 ] ; then sudo su -c "echo '$DIASPORASUDOERSCONF' >>/etc/sudoers" ; 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" +sudo su - diaspora -c "x=1; RET=1; while [ $x -le 5 ] && [ \"$RET\" != 0 ] ; do gem install bundler ; RET=$? ; x=$(( $x + 1 )) ; done" #rm user from sudoers sudo cat /etc/sudoers | grep yunhost_diaspora -q