diff --git a/install_yunohost b/install_yunohost index f76f30e..1cf7327 100755 --- a/install_yunohost +++ b/install_yunohost @@ -107,10 +107,17 @@ then wget -O- http://repo.yunohost.org/yunohost.asc -q | apt-key add - -qq CUSTOMAPT=/etc/apt/sources.list - grep -qri "lemonldap-ng.org" $CUSTOMAPT + grep -qri "lemonldap" $CUSTOMAPT if [[ $? -eq 1 ]] then - echo "deb http://lemonldap-ng.org/deb squeeze main" >> $CUSTOMAPT + case "$(lsb_release -cs)" in + "squeeze") + echo "deb http://lemonldap-ng.org/deb squeeze main" >> $CUSTOMAPT + ;; + "wheezy") + echo "deb http://repo.yunohost.org/ lemonldap main" >> $CUSTOMAPT + ;; + esac fi grep -qri "yunohost" $CUSTOMAPT