mirror of
https://github.com/YunoHost/install_script.git
synced 2024-09-03 20:06:25 +02:00
Update v2 script
This commit is contained in:
parent
ac1cc95e82
commit
61b24207fe
1 changed files with 8 additions and 9 deletions
|
@ -67,10 +67,9 @@ fi
|
||||||
echo "======== Checking domain ========"
|
echo "======== Checking domain ========"
|
||||||
DOMAIN=$(hostname -d)
|
DOMAIN=$(hostname -d)
|
||||||
if [[ "${DOMAIN:-1}" = 1 ]]
|
if [[ "${DOMAIN:-1}" = 1 ]]
|
||||||
then
|
then
|
||||||
echo "======== Installation failed ========"
|
hostname yunohost.yunohost.org
|
||||||
echo "Configure your domain name please"
|
DOMAIN='yunohost.org'
|
||||||
exit $ERR_IMPOSSIBLE
|
|
||||||
fi
|
fi
|
||||||
|
|
||||||
whiptail --title "Yunohost Installation" --yesno "Caution : your config files for postfix,dovecot,mysql,apache,prosody,radicale will be overwritten\nDo you want to proceed install of Yunohost?" 8 78
|
whiptail --title "Yunohost Installation" --yesno "Caution : your config files for postfix,dovecot,mysql,apache,prosody,radicale will be overwritten\nDo you want to proceed install of Yunohost?" 8 78
|
||||||
|
@ -85,13 +84,13 @@ then
|
||||||
echo "======== Adding repositories ========"
|
echo "======== Adding repositories ========"
|
||||||
|
|
||||||
CUSTOMAPT=/etc/apt/sources.list
|
CUSTOMAPT=/etc/apt/sources.list
|
||||||
|
|
||||||
grep -qri "yunohost" $CUSTOMAPT
|
grep -qri "yunohost" $CUSTOMAPT
|
||||||
if [[ $? -eq 1 ]]
|
if [[ $? -eq 1 ]]
|
||||||
then
|
then
|
||||||
echo "deb http://repo.yunohost.org/ megusta main" >> $CUSTOMAPT
|
echo "deb http://repo.yunohost.org/ megusta main" >> $CUSTOMAPT
|
||||||
fi
|
fi
|
||||||
|
|
||||||
grep -qri "lemonldap" $CUSTOMAPT
|
grep -qri "lemonldap" $CUSTOMAPT
|
||||||
if [[ $? -eq 1 ]]
|
if [[ $? -eq 1 ]]
|
||||||
then
|
then
|
||||||
|
@ -102,7 +101,7 @@ then
|
||||||
wget -O- http://lemonldap-ng.org/_media/rpm-gpg-key-ow2 -q | apt-key add - -qq
|
wget -O- http://lemonldap-ng.org/_media/rpm-gpg-key-ow2 -q | apt-key add - -qq
|
||||||
wget -O- http://repo.yunohost.org/yunohost.asc -q | apt-key add - -qq
|
wget -O- http://repo.yunohost.org/yunohost.asc -q | apt-key add - -qq
|
||||||
|
|
||||||
#Update repo
|
#Update repo
|
||||||
debconf-apt-progress \
|
debconf-apt-progress \
|
||||||
--logfile /var/log/yunohost-update.log \
|
--logfile /var/log/yunohost-update.log \
|
||||||
-- \
|
-- \
|
||||||
|
@ -114,7 +113,7 @@ then
|
||||||
rst "$LEGACY"
|
rst "$LEGACY"
|
||||||
exit $ERR_FAIL_UPDATE
|
exit $ERR_FAIL_UPDATE
|
||||||
fi
|
fi
|
||||||
|
|
||||||
echo "======== Install ========"
|
echo "======== Install ========"
|
||||||
#add answer in debconf db
|
#add answer in debconf db
|
||||||
debconf-set-selections debconfv2
|
debconf-set-selections debconfv2
|
||||||
|
@ -143,7 +142,7 @@ then
|
||||||
service apache2 restart
|
service apache2 restart
|
||||||
service dovecot restart
|
service dovecot restart
|
||||||
service postfix restart
|
service postfix restart
|
||||||
service prosody restart
|
service metronome restart
|
||||||
service iptables start
|
service iptables start
|
||||||
service nscd restart
|
service nscd restart
|
||||||
service nslcd restart
|
service nslcd restart
|
||||||
|
|
Loading…
Add table
Reference in a new issue