Only purge the main apache package

This commit is contained in:
Bob Mottram 2017-06-12 13:17:55 +01:00
parent ac1bf02e4f
commit c17a68139b
5 changed files with 13 additions and 6 deletions

View File

@ -332,7 +332,7 @@ function install_dokuwiki {
fi
apt-get -yq remove --purge apache*
apt-get -yq remove --purge apache-bin*
if [ -d /etc/apache2 ]; then
rm -rf /etc/apache2
echo $'Removed Apache installation after Dokuwiki install'

View File

@ -813,8 +813,15 @@ function install_searx {
exit 62429
fi
apt-get -yq install python-pip libyaml-dev python-werkzeug python-babel python-lxml apache2-utils
apt-get -yq install git build-essential libxslt-dev python-dev python-virtualenv zlib1g-dev uwsgi uwsgi-plugin-python libapache2-mod-uwsgi imagemagick
apt-get -yq install python-pip libyaml-dev python-werkzeug python-babel python-lxml
apt-get -yq install git build-essential libxslt-dev python-dev python-virtualenv zlib1g-dev uwsgi uwsgi-plugin-python imagemagick
apt-get -yq install apache2-utils
apt-get -yq remove --purge apache-bin*
if [ -d /etc/apache2 ]; then
rm -rf /etc/apache2
echo $'Removed Apache installation'
fi
pip install --upgrade pip

View File

@ -1031,7 +1031,7 @@ function image_setup_utils {
return
fi
chroot "$rootdir" apt-get -yq install apt-transport-https
chroot "$rootdir" apt-get -yq remove --purge apache*
chroot "$rootdir" apt-get -yq remove --purge apache-bin*
chroot "$rootdir" apt-get -yq dist-upgrade
chroot "$rootdir" apt-get -yq install ca-certificates
chroot "$rootdir" apt-get -yq install apt-utils

View File

@ -161,7 +161,7 @@ function install_mariadb {
debconf-set-selections <<< "mariadb-server mariadb-server/root_password password $MARIADB_PASSWORD"
debconf-set-selections <<< "mariadb-server mariadb-server/root_password_again password $MARIADB_PASSWORD"
apt-get -yq install mariadb-server mariadb-client
apt-get -yq remove --purge apache*
apt-get -yq remove --purge apache-bin*
if [ -d /etc/apache2 ]; then
rm -rf /etc/apache2
echo $'Removed Apache installation after MariaDB install'

View File

@ -209,7 +209,7 @@ function initial_setup {
return
fi
apt-get -yq remove --purge apache*
apt-get -yq remove --purge apache-bin*
apt-get -yq dist-upgrade
apt-get -yq install ca-certificates
apt-get -yq install apt-utils