mirror of
https://github.com/YunoHost/install_script.git
synced 2024-09-03 20:06:25 +02:00
fix bug repo
This commit is contained in:
parent
4d48d9ff1b
commit
841e4f04f5
2 changed files with 13 additions and 13 deletions
|
@ -1,4 +1,4 @@
|
||||||
#!/bin/bash
|
#!/bin/bash -x
|
||||||
|
|
||||||
echo "YunoHost Installation"
|
echo "YunoHost Installation"
|
||||||
echo "Do you want install Yunhost? (Y/n)"
|
echo "Do you want install Yunhost? (Y/n)"
|
||||||
|
@ -29,10 +29,10 @@ then
|
||||||
grep "yunohost" /etc/apt/sources.list
|
grep "yunohost" /etc/apt/sources.list
|
||||||
if [ $? = 1 ];
|
if [ $? = 1 ];
|
||||||
then
|
then
|
||||||
if [ $(lsb_release -cs) = "Debian" ];
|
if [ $(lsb_release -is) = "Debian" ];
|
||||||
then
|
then
|
||||||
echo "deb http://repo.yunohost.org/ squeeze main" >> /etc/apt/sources.list
|
echo "deb http://repo.yunohost.org/ squeeze main" >> /etc/apt/sources.list
|
||||||
elif [ $(lsb_release -cs) = "Ubuntu" ];
|
elif [ $(lsb_release -is) = "Ubuntu" ];
|
||||||
then
|
then
|
||||||
echo "deb http://repo.yunohost.org/ precise main" >> /etc/apt/sources.list
|
echo "deb http://repo.yunohost.org/ precise main" >> /etc/apt/sources.list
|
||||||
fi
|
fi
|
||||||
|
@ -48,11 +48,11 @@ then
|
||||||
|
|
||||||
echo "======== Install ========"
|
echo "======== Install ========"
|
||||||
#add answer in debconf db
|
#add answer in debconf db
|
||||||
wget https://raw.github.com/YunoHost/Script/master/debconf --no-check-certificate
|
#wget https://raw.github.com/YunoHost/Script/master/debconf --no-check-certificate
|
||||||
debconf-set-selections debconf
|
debconf-set-selections debconf
|
||||||
|
|
||||||
#Install yunohost packages
|
#Install yunohost packages
|
||||||
apt-get install yunohost yunohost-config yunohost-config-postfix postfix postfix-ldap postfix-policyd-spf-perl
|
apt-get install yunohost yunohost-config yunohost-config-postfix postfix postfix-ldap postfix-policyd-spf-perl -y
|
||||||
if [ $? != 0 ] ;
|
if [ $? != 0 ] ;
|
||||||
then
|
then
|
||||||
echo "Install yunohost Failure"
|
echo "Install yunohost Failure"
|
||||||
|
|
Loading…
Add table
Reference in a new issue