Skip to content

Commit 75e13bd

Browse files
authored
fix/time and date variables in v-change-user-package (hestiacp#4008)
1 parent b274381 commit 75e13bd

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

bin/v-change-user-package

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -77,8 +77,8 @@ is_package_available() {
7777
change_user_package() {
7878
source_conf "$USER_DATA/user.conf"
7979
# Keep user creation date and time saved
80-
time="$TIME"
81-
date="$DATE"
80+
creation_time="$TIME"
81+
creation_date="$DATE"
8282
source_conf "$HESTIA/data/packages/$package.pkg"
8383
echo "NAME='$NAME'
8484
PACKAGE='$package'
@@ -142,8 +142,8 @@ PREF_UI_SORT='$PREF_UI_SORT'
142142
LOGIN_DISABLED='$LOGIN_DISABLED'
143143
LOGIN_USE_IPLIST='$LOGIN_USE_IPLIST'
144144
LOGIN_ALLOW_IPS='$LOGIN_ALLOW_IPS'
145-
TIME='$time'
146-
DATE='$date'" > $USER_DATA/user.conf
145+
TIME='$creation_time'
146+
DATE='$creation_date'" > $USER_DATA/user.conf
147147
}
148148

149149
#----------------------------------------------------------#

0 commit comments

Comments
 (0)