Item14681: virtual hosting creator creates a VirtualHost.conf from _template.conf, but should be called .cfg
Priority: Normal
Current State: Confirmed
Released In: n/a
Target Release: n/a
Applies To: Extension
Component:
Branches:
Hotfix:
diff --git a/tools/virtualhosts-create.sh b/tools/virtualhosts-create.sh
index 87a3b04..362fbd2 100755
--- a/tools/virtualhosts-create.sh
+++ b/tools/virtualhosts-create.sh
@@ -93,9 +93,9 @@ copy_virtualhost_template() {
maybe_create_configuration_file() {
echo "Creating configuration file from template ..."
- if [ -e "$VIRTUAL_HOSTS_DIR/_template.conf" ]; then
- sed -e "s/%VIRTUALHOST%/$vhost/g" "$VIRTUAL_HOSTS_DIR/_template.conf" > "$VIRTUAL_HOSTS_DIR/$vhost.conf"
- highlight "Configuration file created: $VIRTUAL_HOSTS_DIR/$vhost.conf"
+ if [ -e "$VIRTUAL_HOSTS_DIR/_template.cfg" ]; then
+ sed -e "s/%VIRTUALHOST%/$vhost/g" "$VIRTUAL_HOSTS_DIR/_template.cfg" > "$VIRTUAL_HOSTS_DIR/$vhost.cfg"
+ highlight "Configuration file created: $VIRTUAL_HOSTS_DIR/$vhost.cfg"
fi
}
--
MichaelDaum - 11 Apr 2018