Skip to content

Commit bea7ccd

Browse files
committed
Fix backup restore
1 parent 12409dd commit bea7ccd

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

bin/v-restore-user

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -374,8 +374,8 @@ if [ "$web" != 'no' ] && [ ! -z "$WEB_SYSTEM" ]; then
374374
# Copying ssl certificates
375375
if [ "$SSL" = 'yes' ]; then
376376
for crt in $(ls $tmpdir/web/$domain/conf |grep ssl); do
377-
crt=$(echo "$crt" |sed "s/ssl.//")
378-
cp -f $tmpdir/web/$domain/conf/ssl.$crt $USER_DATA/ssl/$crt
377+
crt=$(echo $crt|sed -e "s/ssl.//")
378+
cp -f $tmpdir/web/$domain/conf/$crt $USER_DATA/ssl/$crt
379379
done
380380
fi
381381

func/main.sh

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -634,8 +634,8 @@ is_date_format_valid() {
634634
is_dbuser_format_valid() {
635635
exclude="[!|@|#|$|^|&|*|(|)|+|=|{|}|:|,|<|>|?|/|\|\"|'|;|%|\`| ]"
636636
if [ 17 -le ${#1} ]; then
637-
check_result $E_INVALID "mysql username can be up to 16 characters long"
638-
fi
637+
check_result $E_INVALID "mysql username can be up to 16 characters long"
638+
fi
639639
if [[ "$1" =~ $exclude ]]; then
640640
check_result $E_INVALID "invalid $2 format :: $1"
641641
fi
@@ -770,7 +770,7 @@ is_name_format_valid() {
770770

771771
# Object validator
772772
is_object_format_valid() {
773-
if ! [[ "$1" =~ ^[[:alnum:]][-|\.|_[:alnum:]]{0,28}[[:alnum:]]$ ]]; then
773+
if ! [[ "$1" =~ ^[[:alnum:]][-|\.|_[:alnum:]]{0,64}[[:alnum:]]$ ]]; then
774774
check_result $E_INVALID "invalid $2 format :: $1"
775775
fi
776776
}

0 commit comments

Comments
 (0)