Преглед изворни кода

Resolve php-hestia installation issue due to missing validation check.

Raphael Schneeberger пре 5 година
родитељ
комит
e7b18da0e2
2 измењених фајлова са 6 додато и 1 уклоњено
  1. 1 1
      src/deb/php/control
  2. 5 0
      src/deb/php/postinst

+ 1 - 1
src/deb/php/control

@@ -1,7 +1,7 @@
 Source: hestia-php
 Package: hestia-php
 Priority: optional
-Version: 7.4.11
+Version: 7.4.11~1
 Section: admin
 Maintainer: HestaCP <info@hestiacp.com>
 Homepage: https://www.hestiacp.com

+ 5 - 0
src/deb/php/postinst

@@ -6,6 +6,11 @@ if [ "$1" != "configure" ]; then
     exit 0
 fi
 
+# Run triggers below only on updates
+if [ ! -e "/usr/local/hestia/data/users/admin" ]; then
+    exit
+fi
+
 # Restart hestia service
 if [ -f "/etc/init.d/hestia" ]; then
     systemctl restart hestia > /dev/null 2>&1