Browse Source

Update rainloop version
Update roundcube version
Fix issue when hestia is behind version numbering rainloop and running again

Jaap Marcus 5 years ago
parent
commit
bb2c4cf298

+ 13 - 4
bin/v-add-sys-rainloop

@@ -14,7 +14,7 @@ source $HESTIA/func/main.sh
 source $HESTIA/conf/hestia.conf
 source $HESTIA/conf/hestia.conf
 source $HESTIA/install/upgrade/upgrade.conf
 source $HESTIA/install/upgrade/upgrade.conf
 
 
-MODE=$2
+MODE=$1
 UPDATE="no"
 UPDATE="no"
 # Version and Download paths
 # Version and Download paths
 # Version to be moved to upgrade script
 # Version to be moved to upgrade script
@@ -88,7 +88,7 @@ if [ "$UPDATE" == "no" ]; then
     echo "Password: $admin_password" >> ~/.rainloop
     echo "Password: $admin_password" >> ~/.rainloop
     echo "Secret key: admin_$key" >> ~/.rainloop
     echo "Secret key: admin_$key" >> ~/.rainloop
     
     
-    unzip -q $RL_FILE
+    unzip -q ${RL_INSTALL_DIR}/${RL_FILE}
     
     
     mv ./data $RL_CONFIG_DIR/
     mv ./data $RL_CONFIG_DIR/
     ln -s $RL_CONFIG_DIR/data/ ./data
     ln -s $RL_CONFIG_DIR/data/ ./data
@@ -151,8 +151,17 @@ if [ "$UPDATE" == "no" ]; then
 
 
 else
 else
    [ ! -f "${RC_INSTALL_DIR}/${RC_FILE}" ] && wget "$RL_URL" --quiet -O "${RL_INSTALL_DIR}/${RL_FILE}"
    [ ! -f "${RC_INSTALL_DIR}/${RC_FILE}" ] && wget "$RL_URL" --quiet -O "${RL_INSTALL_DIR}/${RL_FILE}"
-   unzip -q -o $RL_FILE
-   rm $RL_INSTALL_DIR/$RL_FILE
+   version=$(cat $RL_INSTALL_DIR/data/VERSION);
+   
+   unzip -q -j rainloop-community-latest.zip "data/VERSION" -d $RL_INSTALL_DIR/ 
+   version_source=$(cat $RL_INSTALL_DIR/VERSION);
+   
+   # Check version inside .zip file in case hestia didn't update yet
+   if [ "$version" != "$version_source" ]; then 
+       unzip -q ${RL_INSTALL_DIR}/${RL_FILE}
+       rm $RL_INSTALL_DIR/$RL_FILE
+    fi
+    rm ${RL_INSTALL_DIR}/VERSION
 fi
 fi
 
 
 #----------------------------------------------------------#
 #----------------------------------------------------------#

+ 1 - 1
install/hst-install-debian.sh

@@ -25,7 +25,7 @@ VERBOSE='no'
 # Define software versions
 # Define software versions
 HESTIA_INSTALL_VER='1.4.0~alpha'
 HESTIA_INSTALL_VER='1.4.0~alpha'
 pma_v='5.1.0'
 pma_v='5.1.0'
-rc_v="1.4.10"
+rc_v="1.4.11"
 multiphp_v=("5.6" "7.0" "7.1" "7.2" "7.3" "7.4" "8.0")
 multiphp_v=("5.6" "7.0" "7.1" "7.2" "7.3" "7.4" "8.0")
 fpm_v="7.4"
 fpm_v="7.4"
 mariadb_v="10.5"
 mariadb_v="10.5"

+ 1 - 1
install/hst-install-ubuntu.sh

@@ -25,7 +25,7 @@ VERBOSE='no'
 # Define software versions
 # Define software versions
 HESTIA_INSTALL_VER='1.4.0~alpha'
 HESTIA_INSTALL_VER='1.4.0~alpha'
 pma_v='5.1.0'
 pma_v='5.1.0'
-rc_v="1.4.10"
+rc_v="1.4.11"
 multiphp_v=("5.6" "7.0" "7.1" "7.2" "7.3" "7.4" "8.0")
 multiphp_v=("5.6" "7.0" "7.1" "7.2" "7.3" "7.4" "8.0")
 fpm_v="7.4"
 fpm_v="7.4"
 mariadb_v="10.5"
 mariadb_v="10.5"

+ 2 - 2
install/upgrade/upgrade.conf

@@ -53,7 +53,7 @@ pma_v='5.1.0'
 
 
 # Set version of RoundCube (Webmail) to update during upgrade if not already installed
 # Set version of RoundCube (Webmail) to update during upgrade if not already installed
 # Note: only aplies to "non-apt installs >= 1.4.0 or manualy phased out"
 # Note: only aplies to "non-apt installs >= 1.4.0 or manualy phased out"
-rc_v="1.4.10"
+rc_v="1.4.11"
 
 
 # Set version of Rainloop (Webmail) to update during upgrade if not already installed
 # Set version of Rainloop (Webmail) to update during upgrade if not already installed
-rl_v="1.14.0"
+rl_v="1.15.0"