Skip to content

Commit d996e0d

Browse files
authored
Release 1.00.0-190618
2 parents e4c73e1 + c8aadac commit d996e0d

File tree

1,746 files changed

+18709
-362817
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

1,746 files changed

+18709
-362817
lines changed

.gitignore

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,5 +2,17 @@
22
*.zip
33
*.gzip
44
*.gz
5+
*.bz2
6+
*.deb
7+
58
.vscode
69
.DS_Store
10+
11+
.env
12+
composer.phar
13+
composer.lock
14+
test/vendor/
15+
test/node_modules/
16+
npm-debug.log
17+
.phpunit.result.cache
18+
.vs

ISSUE_TEMPLATE.md

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,10 @@ Type here (e.g. A list of hosted web domains should appear).
1313
Type here (e.g. Ubuntu 18.04 LTS)
1414

1515
### HestiaCP Version:
16-
Type here (e.g. 0.9.8-28)
16+
Type here (e.g. 0.9.8-29)
17+
18+
### Which branch are you using?
19+
Type here (e.g master, develop, etc.)
1720

1821
### Which branch are you using?
1922
Type here (e.g master, develop, etc.)

bin/v-add-backup-host

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -169,9 +169,7 @@ fi
169169

170170
# Adding backup host
171171
if [ $type != 'local' ]; then
172-
time_n_date=$(date +'%T %F')
173-
time=$(echo "$time_n_date" |cut -f 1 -d \ )
174-
date=$(echo "$time_n_date" |cut -f 2 -d \ )
172+
new_timestamp
175173
str="HOST='$host'\nUSERNAME='$user'\nPASSWORD='$password'"
176174
str="$str\nBPATH='$path'\nPORT='$port'\nTIME='$time'\nDATE='$date'"
177175
echo -e "$str" > $HESTIA/conf/$type.backup.conf

bin/v-add-cron-hestia-autoupdate

100644100755
File mode changed.

bin/v-add-dns-record

Lines changed: 8 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -45,18 +45,16 @@ if [[ $rtype =~ NS|CNAME|MX|PTR|SRV ]]; then
4545
fi
4646
fi
4747

48-
if [ $rtype != "CAA" ]; then
49-
dvalue=${dvalue//\"/}
50-
# Exclude CAA records for ' enclosure
51-
if [[ "$dvalue" =~ [\;[:space:]] ]]; then
52-
dvalue='"'"$dvalue"'"'
53-
fi
54-
fi
48+
# Cleanup quotes on dvalue
49+
# - [CAA] records will be left unchanged
50+
# - [SRV] will be stripped of double quotes even when containg spaces
51+
# - Rest of record types will be striped of quotes and the final string
52+
# will be enclosed in double quotes if containg spaces or semicolons
5553

56-
if [[ "$dvalue" =~ [\;[:space:]] ]]; then
54+
if [ "$rtype" != "CAA" ]; then
5755
dvalue=${dvalue//\"/}
58-
# Exclude SRV records for ' enclosure
59-
if [ "$rtype" != 'SRV' ]; then
56+
57+
if [ "$rtype" != 'SRV' ] && [[ "$dvalue" =~ [\;[:space:]] ]]; then
6058
dvalue='"'"$dvalue"'"'
6159
fi
6260
fi

0 commit comments

Comments
 (0)