Skip to content

Commit af85eff

Browse files
author
Christoph Schläpfer
committed
Fixed error where version string didn't land in log file after installation
1 parent e371063 commit af85eff

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

bin/v-add-sys-snappymail

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,6 @@ if [ "$UPDATE" == "no" ]; then
9292
exit 2
9393
fi
9494

95-
# Get current version
9695

9796
key=$(openssl rand -hex 4)
9897
suffix=$(openssl rand -hex 4)
@@ -104,6 +103,8 @@ if [ "$UPDATE" == "no" ]; then
104103
echo "Admin Panel key: admin_$key" >> ~/.snappymail
105104

106105
tar -xzf ${SM_INSTALL_DIR}/${SM_FILE}
106+
# Get current version
107+
version=$(cat ./data/VERSION)
107108

108109
mv ./data $SM_CONFIG_DIR/
109110
ln -s $SM_CONFIG_DIR/data/ ./data

0 commit comments

Comments
 (0)