Ver código fonte

Try to ensure that Apache doesn't get installed

Bob Mottram 10 anos atrás
pai
commit
ef40df6945
1 arquivos alterados com 10 adições e 0 exclusões
  1. 10
    0
      src/freedombone

+ 10
- 0
src/freedombone Ver arquivo

@@ -6145,6 +6145,11 @@ function install_owncloud {
6145 6145
       fi
6146 6146
   fi
6147 6147
   apt-get -y install owncloud
6148
+  apt-get -y remove --purge apache*
6149
+  if [ -d /etc/apache2 ]; then
6150
+      rm -rf /etc/apache2
6151
+      echo 'Removed Apache installation'
6152
+  fi
6148 6153
   install_mariadb
6149 6154
   get_mariadb_password
6150 6155
 
@@ -6569,6 +6574,11 @@ function install_wiki {
6569 6574
       return
6570 6575
   fi
6571 6576
   apt-get -y install dokuwiki
6577
+  apt-get -y remove --purge apache*
6578
+  if [ -d /etc/apache2 ]; then
6579
+      rm -rf /etc/apache2
6580
+      echo 'Removed Apache installation'
6581
+  fi
6572 6582
 
6573 6583
   if [ ! -d /var/www/$WIKI_DOMAIN_NAME ]; then
6574 6584
       mkdir /var/www/$WIKI_DOMAIN_NAME