Skip to content

Commit 020d22a

Browse files
author
Christoph Schläpfer
committed
Cleared up admin_ and admin_ confusion
1 parent 01cd3c5 commit 020d22a

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

bin/v-add-sys-snappymail

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -97,9 +97,9 @@ if [ "$UPDATE" == "no" ]; then
9797
admin_account="admin_$key"
9898
admin_password=$(generate_password)
9999

100-
echo "Username: admin_$suffix" > ~/.snappymail
100+
echo "Username: admin_$key" > ~/.snappymail
101101
echo "Password: $admin_password" >> ~/.snappymail
102-
echo "Admin Panel key: admin_$key" >> ~/.snappymail
102+
echo "Admin Panel key: admin_$suffix" >> ~/.snappymail
103103

104104
tar -xzf ${SM_INSTALL_DIR}/${SM_FILE}
105105
# Get current version
@@ -125,7 +125,7 @@ if [ "$UPDATE" == "no" ]; then
125125
fi
126126
# Temporarily set the permissions to www-data
127127
chown -R www-data:www-data $SM_CONFIG_DIR/
128-
php -f $HESTIA_COMMON_DIR/snappymail/install.php "admin_$suffix" "admin_$key" "$admin_password" "$r" "$BACKEND_PORT"
128+
php -f $HESTIA_COMMON_DIR/snappymail/install.php "admin_$key" "admin_$suffix" "$admin_password" "$r" "$BACKEND_PORT"
129129

130130
# Set the permissions back to hestiamail
131131
chown -R hestiamail:www-data $SM_CONFIG_DIR/

0 commit comments

Comments
 (0)