Sfoglia il codice sorgente

Add upgrade script to remove old traces

Jaap Marcus 5 anni fa
parent
commit
4b40d54dea
2 ha cambiato i file con 14 aggiunte e 0 eliminazioni
  1. 3 0
      CHANGELOG.md
  2. 11 0
      install/upgrade/versions/1.4.0.sh

+ 3 - 0
CHANGELOG.md

@@ -45,7 +45,10 @@ All notable changes to this project will be documented in this file.
 - Disabled changing backup folder via Web UI because it used symbolic link instead of mount causing issues with restore mail / user files.
 - Fixed XSS vulnerability in `v-add-sys-ip` and user history log (thanks **@numanturle**).
 - Fixed remote code execution vulnerability which could occur when deleting SSH keys (thanks **@numanturle**).
+- Fixed vulnerability in v-update-sys-hestia (thanks **@numanturle**)
 - Improve how Quick install of web apps are handled and allow users added apps to be maintained in list view. 
+- Add Drupal quick installer
+- Add Nextcloud quick installer
 
 ## [1.3.5] - Service Release
 ### Features

+ 11 - 0
install/upgrade/versions/1.4.0.sh

@@ -150,3 +150,14 @@ rm -rf $HESTIA/data/templates/web/nginx/php-fpm/drupal7.*tpl
 rm -rf $HESTIA/data/templates/web/nginx/php-fpm/drupal8.*tpl
 rm -rf $HESTIA/data/templates/web/nginx/php-fpm/codeigniter2.*tpl
 rm -rf $HESTIA/data/templates/web/nginx/php-fpm/codeigniter3.*tpl
+
+# Clean up old Hestia controled webapps
+if [ -d "$HESTIA/web/images/webapps/" ]; then 
+    echo "[ * ] Clean up old web apps code..."
+    rm -rf $HESTIA/web/images/webapps/
+    rm -rf $HESTIA/web/src/app/WebApp/Installers/LaravelSetup.php
+    rm -rf $HESTIA/web/src/app/WebApp/Installers/OpencartSetup.php
+    rm -rf $HESTIA/web/src/app/WebApp/Installers/PrestashopSetup.php
+    rm -rf $HESTIA/web/src/app/WebApp/Installers/SymfonySetup.php
+    rm -rf $HESTIA/web/src/app/WebApp/Installers/WordpressSetup.php
+fi