mirror of
https://github.com/serghey-rodin/vesta.git
synced 2026-04-04 19:19:16 +02:00
Fix invalid extension replace in add_web_config
Do not use globbing, because it kills too many characters. Use conditionals and search at the end of the line instead.
This commit is contained in:
@@ -215,7 +215,11 @@ add_web_config() {
|
||||
fi
|
||||
fi
|
||||
|
||||
trigger="${2/.*pl/.sh}"
|
||||
trigger="${2/%.tpl/.sh}"
|
||||
if [[ "$2" =~ stpl$ ]]; then
|
||||
trigger="${2/%.stpl/.sh}"
|
||||
fi
|
||||
|
||||
if [ -x "$WEBTPL/$1/$WEB_BACKEND/$trigger" ]; then
|
||||
$WEBTPL/$1/$WEB_BACKEND/$trigger \
|
||||
$user $domain $local_ip $HOMEDIR \
|
||||
|
||||
Reference in New Issue
Block a user