We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b8375c5 commit 04a5526Copy full SHA for 04a5526
func/domain.sh
@@ -269,7 +269,7 @@ replace_web_config() {
269
fi
270
}
271
272
-# Delete web configuartion
+# Delete web configuration
273
del_web_config() {
274
conf="$HOMEDIR/$user/conf/web/$domain.$1.conf"
275
if [[ "$2" =~ stpl$ ]]; then
@@ -291,7 +291,7 @@ del_web_config() {
291
# clean-up for both config styles if there is no more domains
292
web_domain=$(grep DOMAIN $USER_DATA/web.conf |wc -l)
293
if [ "$web_domain" -eq '0' ]; then
294
- sed -i "/.*\/$user\/.*/d" /etc/$1/conf.d/vesta.conf
+ sed -i "/.*\/$user\/conf\/web\//d" /etc/$1/conf.d/vesta.conf
295
if [ -f "$conf" ]; then
296
rm -f $conf
297
0 commit comments