Skip to content

Commit cbc45e4

Browse files
committed
Validate if unzip exists before install the filemanager.
1 parent 5a739e6 commit cbc45e4

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

install/upgrade/versions/latest.sh

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -81,6 +81,14 @@ fi
8181
# Install Filegator FileManager during upgrade
8282
if [ ! -e "$HESTIA/web/fm/configuration.php" ]; then
8383
echo "(*) Configuring Filegator FileManager..."
84+
85+
# Validate if unzip is installed
86+
if [ ! -e "/usr/bin/unzip" ]; then
87+
apt -qq update > /dev/null 2>&1
88+
apt -qq install unzip > /dev/null 2>&1
89+
fi
90+
91+
# Install the FileManager
8492
source $HESTIA_INSTALL_DIR/filemanager/install-fm.sh > /dev/null 2>&1
8593

8694
# Add sftp key for every user

0 commit comments

Comments
 (0)