mirror of
https://github.com/YunoHost/install_script.git
synced 2024-09-03 20:06:25 +02:00
Bugfixes
This commit is contained in:
parent
16da07772d
commit
f136823b26
2 changed files with 18 additions and 14 deletions
|
@ -31,7 +31,7 @@ fi
|
|||
echo "Check dependencies"
|
||||
|
||||
apt-get update -qq
|
||||
for i in lsb-release wget whiptail
|
||||
for i in lsb-release wget dialog whiptail
|
||||
do
|
||||
dpkg -l | grep -q $i
|
||||
if [[ $? -eq 1 ]]
|
||||
|
@ -88,12 +88,14 @@ then
|
|||
echo "deb http://repo.yunohost.org/ megusta main" >> $CUSTOMAPT
|
||||
fi
|
||||
|
||||
if [[ "$1" == "test" ]]; then
|
||||
grep -qri "test" $CUSTOMAPT
|
||||
if [ $# -eq 1 ]; then
|
||||
echo "deb http://repo.yunohost.org/ test main" >> $CUSTOMAPT
|
||||
fi
|
||||
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
|
||||
fi
|
||||
|
||||
#Get gpg key
|
||||
wget -O- http://repo.yunohost.org/yunohost.asc -q | apt-key add - -qq
|
||||
|
|
|
@ -32,7 +32,7 @@ echo "======== YunoHost Installation ========"
|
|||
echo "======== Check dependences ========"
|
||||
|
||||
apt-get update -qq
|
||||
for i in lsb-release wget whiptail
|
||||
for i in lsb-release wget dialog whiptail
|
||||
do
|
||||
dpkg -l | grep -q $i
|
||||
if [[ $? -eq 1 ]]
|
||||
|
@ -90,12 +90,14 @@ then
|
|||
echo "deb http://repo.yunohost.org/ megusta main" >> $CUSTOMAPT
|
||||
fi
|
||||
|
||||
if [[ "$1" == "test" ]]; then
|
||||
grep -qri "test" $CUSTOMAPT
|
||||
if [ $# -eq 1 ]; then
|
||||
echo "deb http://repo.yunohost.org/ test main" >> $CUSTOMAPT
|
||||
fi
|
||||
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
|
||||
fi
|
||||
|
||||
#Get gpg key
|
||||
wget -O- http://repo.yunohost.org/yunohost.asc -q | apt-key add - -qq
|
||||
|
|
Loading…
Add table
Reference in a new issue