Ver Fonte

Remove old webdav enabled apache config

Without this the update from old versions will fail as the webdav module is
not installed
Johannes Zellner há 8 anos atrás
pai
commit
c6dd607153
1 ficheiros alterados com 6 adições e 1 exclusões
  1. 6 1
      start.sh

+ 6 - 1
start.sh

@@ -10,6 +10,12 @@ for f in /app/data/public/index.*; do
     break
 done
 
+# check for old webdav enabled apache2-app.conf
+if grep "### WARNING the following lines will be updated dynamically by start.sh" /app/data/apache2-app.conf; then
+    echo "=> Removing old apache2-app.conf"
+    rm -f /app/data/apache2-app.conf
+fi
+
 if [ ! -f "/app/data/php.ini" ]; then
     cp /etc/php/7.0/apache2/php.ini.orig /app/data/php.ini
 fi
@@ -65,4 +71,3 @@ chown -R www-data:www-data /app/data /run/apache2 /run/proftpd /run/app
 
 echo "Starting supervisord"
 exec /usr/bin/supervisord --configuration /etc/supervisor/supervisord.conf --nodaemon -i Lamp
-