mirror of
https://github.com/the-djmaze/snappymail.git
synced 2024-12-26 17:16:07 +08:00
HestiCP unzip -q
to tar -xzf
This commit is contained in:
parent
3ee1bd488a
commit
cc6a4c4de9
1 changed files with 4 additions and 4 deletions
|
@ -92,7 +92,7 @@ if [ "$UPDATE" == "no" ]; then
|
|||
echo "Password: $admin_password" >> ~/.snappymail
|
||||
echo "Secret key: admin_$key" >> ~/.snappymail
|
||||
|
||||
unzip -q ${SM_INSTALL_DIR}/${SM_FILE}
|
||||
tar -xzf ${SM_INSTALL_DIR}/${SM_FILE}
|
||||
|
||||
mv ./data $SM_CONFIG_DIR/
|
||||
ln -s $SM_CONFIG_DIR/data/ ./data
|
||||
|
@ -153,12 +153,12 @@ else
|
|||
[ ! -f "${RC_INSTALL_DIR}/${RC_FILE}" ] && wget "$SM_URL" --quiet -O "${SM_INSTALL_DIR}/${SM_FILE}"
|
||||
version=$(cat $SM_INSTALL_DIR/data/VERSION);
|
||||
|
||||
unzip -q -j snappymail-latest.zip "data/VERSION" -d $SM_INSTALL_DIR/
|
||||
tar -xzf snappymail-latest.tar.gz "data/VERSION" $SM_INSTALL_DIR/
|
||||
version_source=$(cat $SM_INSTALL_DIR/VERSION);
|
||||
|
||||
# Check version inside .zip file in case hestia didn't update yet
|
||||
# Check version inside .tar.gz file in case hestia didn't update yet
|
||||
if [ "$version" != "$version_source" ]; then
|
||||
unzip -q ${SM_INSTALL_DIR}/${SM_FILE}
|
||||
tar -xzf ${SM_INSTALL_DIR}/${SM_FILE}
|
||||
rm $SM_INSTALL_DIR/$SM_FILE
|
||||
fi
|
||||
rm ${SM_INSTALL_DIR}/VERSION
|
||||
|
|
Loading…
Reference in a new issue