Skip to content

Commit 43915ed

Browse files
authored
Merge pull request hestiacp#1651 from hestiacp/fix/2021-03-issues-rainloop
Fix/2021 03 issues rainloop
2 parents 30db78a + f26f893 commit 43915ed

File tree

4 files changed

+19
-10
lines changed

4 files changed

+19
-10
lines changed

bin/v-add-sys-rainloop

Lines changed: 14 additions & 5 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
@@ -54,7 +54,7 @@ fi
5454
if [ -f "/var/lib/rainloop/data/VERSION" ]; then
5555
version=$(cat $RL_INSTALL_DIR/data/VERSION);
5656
if [ "$version" == "$rl_v" ]; then
57-
echo "Error: Installed version ($version) is equal as the availble version ($rc_v)"
57+
echo "Error: Installed version ($version) is equal as the availble version ($rl_v)"
5858
exit 2;
5959
else
6060
UPDATE="yes"
@@ -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: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -52,8 +52,8 @@ UPGRADE_RESTART_SERVICES='true'
5252
pma_v='5.1.0'
5353

5454
# Set version of RoundCube (Webmail) to update during upgrade if not already installed
55-
# Note: only aplies to "non-apt installs >= 1.4.0 or manualy phased out"
56-
rc_v="1.4.10"
55+
# Note: only applies to "non-apt installs >= 1.4.0 or manually phased out"
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)