mirror of
https://github.com/YunoHost/install_script.git
synced 2024-09-03 20:06:25 +02:00
Update install_yunohost
This commit is contained in:
parent
43e2823e8a
commit
bd8f173b5d
1 changed files with 15 additions and 14 deletions
|
@ -107,19 +107,7 @@ then
|
|||
wget -O- http://repo.yunohost.org/yunohost.asc -q | apt-key add - -qq
|
||||
|
||||
CUSTOMAPT=/etc/apt/sources.list
|
||||
grep -qri "lemonldap" $CUSTOMAPT
|
||||
if [[ $? -eq 1 ]]
|
||||
then
|
||||
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
|
||||
if [[ $? -eq 1 ]]
|
||||
then
|
||||
|
@ -128,13 +116,26 @@ then
|
|||
echo "deb http://repo.yunohost.org/ squeeze main" >> $CUSTOMAPT
|
||||
echo "deb http://repo.yunohost.org/ apps main" >> $CUSTOMAPT
|
||||
;;
|
||||
"wheezy")
|
||||
"wheezy"|"n/a")
|
||||
echo "deb http://repo.yunohost.org/ megusta main" >> $CUSTOMAPT
|
||||
echo "deb http://repo.yunohost.org/ apps main" >> $CUSTOMAPT
|
||||
;;
|
||||
esac
|
||||
fi
|
||||
|
||||
grep -qri "lemonldap" $CUSTOMAPT
|
||||
if [[ $? -eq 1 ]]
|
||||
then
|
||||
case "$(lsb_release -cs)" in
|
||||
"squeeze")
|
||||
echo "deb http://lemonldap-ng.org/deb squeeze main" >> $CUSTOMAPT
|
||||
;;
|
||||
"wheezy"|"n/a")
|
||||
echo "deb http://repo.yunohost.org/ lemonldap main" >> $CUSTOMAPT
|
||||
;;
|
||||
esac
|
||||
fi
|
||||
|
||||
#Update repo
|
||||
debconf-apt-progress \
|
||||
--logfile /var/log/yunohost-update.log \
|
||||
|
|
Loading…
Add table
Reference in a new issue