diff --git a/bin/v-add-dns-domain b/bin/v-add-dns-domain
index f43891a6..17bdc4ae 100755
--- a/bin/v-add-dns-domain
+++ b/bin/v-add-dns-domain
@@ -16,7 +16,6 @@
# Argument definition
user=$1
domain=$2
-domain_idn=$2
ip=$3
ns1=$4
ns2=$5
diff --git a/bin/v-add-mail-domain b/bin/v-add-mail-domain
index 10e87032..2676e750 100755
--- a/bin/v-add-mail-domain
+++ b/bin/v-add-mail-domain
@@ -12,7 +12,6 @@
# Argument definition
user=$1
domain=$2
-domain_idn=$2
antispam=${3-yes}
antivirus=${4-yes}
dkim=${5-yes}
diff --git a/func/main.sh b/func/main.sh
index 3703e395..964610cd 100644
--- a/func/main.sh
+++ b/func/main.sh
@@ -875,12 +875,11 @@ format_domain() {
domain=$(echo "$domain" |sed -e "s/^www.//")
fi
if [[ "$domain" =~ .*\.$ ]]; then
- domain=$(echo "$domain" |sed -e "s/\.$//")
+ domain=$(echo "$domain" |sed -e "s/[.]*$//g")
fi
if [[ "$domain" =~ ^\. ]]; then
- domain=$(echo "$domain" |sed -e "s/^\.//")
+ domain=$(echo "$domain" |sed -e "s/^[.]*//")
fi
-
}
format_domain_idn() {
@@ -896,6 +895,9 @@ format_aliases() {
if [ ! -z "$aliases" ] && [ "$aliases" != 'none' ]; then
aliases=$(echo $aliases |tr '[:upper:]' '[:lower:]' |tr ',' '\n')
aliases=$(echo "$aliases" |sed -e "s/\.$//" |sort -u)
+ aliases=$(echo "$aliases" |tr -s '.')
+ aliases=$(echo "$aliases" |sed -e "s/[.]*$//g")
+ aliases=$(echo "$aliases" |sed -e "s/^[.]*//")
aliases=$(echo "$aliases" |grep -v www.$domain |sed -e "/^$/d")
aliases=$(echo "$aliases" |tr '\n' ',' |sed -e "s/,$//")
fi
diff --git a/upd/add_notifications.sh b/upd/add_notifications.sh
index 085d444b..31beb524 100755
--- a/upd/add_notifications.sh
+++ b/upd/add_notifications.sh
@@ -4,6 +4,4 @@
rm -f /usr/local/vesta/data/users/admin/notifications.conf
/usr/local/vesta/bin/v-add-user-notification admin "File Manager" "Browse, copy, edit, view, and retrieve all your web domain files using a fully featured File Manager. Plugin is available for purchase." 'filemanager'
/usr/local/vesta/bin/v-add-user-notification admin "Chroot SFTP" "If you want to have SFTP accounts that will be used only to transfer files (and not to SSH), you can purchase and enable SFTP Chroot"
-/usr/local/vesta/bin/v-add-user-notification admin "Free SSL Certificates" "Lets Encrypt is a free and automated Certificate Authority. You can find out more information at letsencrypt.org"
-/usr/local/vesta/bin/v-add-user-notification admin "Keyboard Control" "You can use your keyboard to perform many of the actions you perform with your mouse, such as navigating to or selecting menus and items"
-/usr/local/vesta/bin/v-add-user-notification admin "Release 0.9.8-17" "Notable in this release is the improved server tab. You can now edit service configs, php.ini and so on. We have added nice mail helpers and fixed a dozen bugs. For more information please read the release notes"
+/usr/local/vesta/bin/v-add-user-notification admin "Release 0.9.8-18" "Biggest the release notes"