mirror of
https://github.com/YunoHost/install_script.git
synced 2024-09-03 20:06:25 +02:00
Check for possible conflicts with apache, bind9
This commit is contained in:
parent
caef25128e
commit
b12fbc9660
1 changed files with 14 additions and 0 deletions
|
@ -36,6 +36,8 @@ Options :
|
||||||
This does not perform the post-install step.
|
This does not perform the post-install step.
|
||||||
-d Choose the distribution to install ('stable', 'testing', 'unstable').
|
-d Choose the distribution to install ('stable', 'testing', 'unstable').
|
||||||
Defaults to 'stable'
|
Defaults to 'stable'
|
||||||
|
-f Ignore checks before starting the installation. Use only if you know
|
||||||
|
what you are doing.
|
||||||
-h Prints this help and exit
|
-h Prints this help and exit
|
||||||
"
|
"
|
||||||
}
|
}
|
||||||
|
@ -45,6 +47,7 @@ function parse_options()
|
||||||
AUTOMODE=0
|
AUTOMODE=0
|
||||||
DISTRIB=stable
|
DISTRIB=stable
|
||||||
BUILD_IMAGE=0
|
BUILD_IMAGE=0
|
||||||
|
FORCE=0
|
||||||
|
|
||||||
while getopts ":aid:h" option; do
|
while getopts ":aid:h" option; do
|
||||||
case $option in
|
case $option in
|
||||||
|
@ -55,6 +58,9 @@ function parse_options()
|
||||||
d)
|
d)
|
||||||
DISTRIB=$OPTARG
|
DISTRIB=$OPTARG
|
||||||
;;
|
;;
|
||||||
|
f)
|
||||||
|
FORCE=1
|
||||||
|
;;
|
||||||
i)
|
i)
|
||||||
# This hidden option will allow to build generic image for Rpi/Olimex
|
# This hidden option will allow to build generic image for Rpi/Olimex
|
||||||
BUILD_IMAGE=1
|
BUILD_IMAGE=1
|
||||||
|
@ -210,6 +216,14 @@ function check_assertions()
|
||||||
if is_raspbian ; then
|
if is_raspbian ; then
|
||||||
user_pi_logged_out || die "The user pi should be logged out."
|
user_pi_logged_out || die "The user pi should be logged out."
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
# Check possible conflict with apache, bind9.
|
||||||
|
[[ -z "$(dpkg --list | grep ' bind9')" ]] || [[ "$FORCE" == "1" ]] \
|
||||||
|
|| die "Bind9 is installed and might conflict with dnsmasq. Uninstall it first, or if you know what you are doing, run this script with -f."
|
||||||
|
|
||||||
|
[[ -z "$(dpkg --list | grep ' apache2')" ]] || [[ "$FORCE" == "1" ]] \
|
||||||
|
|| die "Apache is installed and might conflict with nginx. Uninstall it first, or if you know what you are doing, run this script with -f."
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
function upgrade_system() {
|
function upgrade_system() {
|
||||||
|
|
Loading…
Add table
Reference in a new issue