Skip to content

Commit bb2c4cf

Browse files
committed
Update rainloop version
Update roundcube version Fix issue when hestia is behind version numbering rainloop and running again
1 parent 4d762b8 commit bb2c4cf

File tree

4 files changed

+17
-8
lines changed

4 files changed

+17
-8
lines changed

bin/v-add-sys-rainloop

Lines changed: 13 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ source $HESTIA/func/main.sh
1414
source $HESTIA/conf/hestia.conf
1515
source $HESTIA/install/upgrade/upgrade.conf
1616

17-
MODE=$2
17+
MODE=$1
1818
UPDATE="no"
1919
# Version and Download paths
2020
# Version to be moved to upgrade script
@@ -88,7 +88,7 @@ if [ "$UPDATE" == "no" ]; then
8888
echo "Password: $admin_password" >> ~/.rainloop
8989
echo "Secret key: admin_$key" >> ~/.rainloop
9090

91-
unzip -q $RL_FILE
91+
unzip -q ${RL_INSTALL_DIR}/${RL_FILE}
9292

9393
mv ./data $RL_CONFIG_DIR/
9494
ln -s $RL_CONFIG_DIR/data/ ./data
@@ -151,8 +151,17 @@ if [ "$UPDATE" == "no" ]; then
151151

152152
else
153153
[ ! -f "${RC_INSTALL_DIR}/${RC_FILE}" ] && wget "$RL_URL" --quiet -O "${RL_INSTALL_DIR}/${RL_FILE}"
154-
unzip -q -o $RL_FILE
155-
rm $RL_INSTALL_DIR/$RL_FILE
154+
version=$(cat $RL_INSTALL_DIR/data/VERSION);
155+
156+
unzip -q -j rainloop-community-latest.zip "data/VERSION" -d $RL_INSTALL_DIR/
157+
version_source=$(cat $RL_INSTALL_DIR/VERSION);
158+
159+
# Check version inside .zip file in case hestia didn't update yet
160+
if [ "$version" != "$version_source" ]; then
161+
unzip -q ${RL_INSTALL_DIR}/${RL_FILE}
162+
rm $RL_INSTALL_DIR/$RL_FILE
163+
fi
164+
rm ${RL_INSTALL_DIR}/VERSION
156165
fi
157166

158167
#----------------------------------------------------------#

install/hst-install-debian.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ VERBOSE='no'
2525
# Define software versions
2626
HESTIA_INSTALL_VER='1.4.0~alpha'
2727
pma_v='5.1.0'
28-
rc_v="1.4.10"
28+
rc_v="1.4.11"
2929
multiphp_v=("5.6" "7.0" "7.1" "7.2" "7.3" "7.4" "8.0")
3030
fpm_v="7.4"
3131
mariadb_v="10.5"

install/hst-install-ubuntu.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ VERBOSE='no'
2525
# Define software versions
2626
HESTIA_INSTALL_VER='1.4.0~alpha'
2727
pma_v='5.1.0'
28-
rc_v="1.4.10"
28+
rc_v="1.4.11"
2929
multiphp_v=("5.6" "7.0" "7.1" "7.2" "7.3" "7.4" "8.0")
3030
fpm_v="7.4"
3131
mariadb_v="10.5"

install/upgrade/upgrade.conf

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ pma_v='5.1.0'
5353

5454
# Set version of RoundCube (Webmail) to update during upgrade if not already installed
5555
# Note: only aplies to "non-apt installs >= 1.4.0 or manualy phased out"
56-
rc_v="1.4.10"
56+
rc_v="1.4.11"
5757

5858
# Set version of Rainloop (Webmail) to update during upgrade if not already installed
59-
rl_v="1.14.0"
59+
rl_v="1.15.0"

0 commit comments

Comments
 (0)