From df728184c10841469a5571779c922342ed82e927 Mon Sep 17 00:00:00 2001 From: julienmalik Date: Sun, 22 Feb 2015 18:47:46 +0100 Subject: [PATCH] [enh] report modification on install script to autoinstall --- autoinstall_yunohostv2 | 24 +++++++++--------------- 1 file changed, 9 insertions(+), 15 deletions(-) diff --git a/autoinstall_yunohostv2 b/autoinstall_yunohostv2 index 72e1b9b..e66768a 100755 --- a/autoinstall_yunohostv2 +++ b/autoinstall_yunohostv2 @@ -90,21 +90,15 @@ then echo "deb http://repo.yunohost.org/ megusta main" >> $CUSTOMAPT fi - if [ $# -gt 0 ]; then - if [[ "$1" == "test" ]]; then - grep -qri "test" $CUSTOMAPT - if [ $# -eq 1 ]; then - echo "deb http://repo.yunohost.org/ test main" >> $CUSTOMAPT - fi - fi - if [[ "$1" == "daily" ]]; then - grep -qri "daily" $CUSTOMAPT - if [ $# -eq 1 ]; then - echo "deb http://daily.yunohost.org/daily/ megusta main" >> $CUSTOMAPT - echo "deb http://daily.yunohost.org/test/ wheezy main" >> $CUSTOMAPT - fi - fi - fi + if [ $# -gt 0 ]; then + if [[ "$1" == "test" ]] || [[ "$1" == "testing" ]] ; then + echo "deb http://daily.yunohost.org/ testing main" >> $CUSTOMAPT + fi + if [[ "$1" == "daily" ]] || [[ "$1" == "unstable" ]] ; then + echo "deb http://daily.yunohost.org/ testing main" >> $CUSTOMAPT + echo "deb http://daily.yunohost.org/ unstable main" >> $CUSTOMAPT + fi + fi #Get gpg key wget -O- http://repo.yunohost.org/yunohost.asc -q | apt-key add - -qq