Browse Source

Fix environment variables in upgrade script

Kristan Kenney 6 years ago
parent
commit
740a5b08f3
1 changed files with 5 additions and 4 deletions
  1. 5 4
      install/upgrade/1.00.0-190618.sh

+ 5 - 4
install/upgrade/1.00.0-190618.sh

@@ -1,11 +1,12 @@
 #!/bin/bash
 
-# Define vars
-if [ -z "$HESTIA" ]; then
-    export HESTIA="/usr/local/hestia"
-fi
+# Define variables
+export HESTIA="/usr/local/hestia"
+export BIN="/usr/local/hestia/bin"
 HESTIA_BACKUP="/root/hst_upgrade/$(date +%d%m%Y%H%M)"
 hestiacp="$HESTIA/install/deb"
+
+# Set phpMyAdmin version for upgrade
 pma_v='4.9.0.1'
 
 # Add amd64 to repositories to prevent notifications - https://goo.gl/hmsSV7