You are here: Foswiki>Tasks Web>Item14681 (11 Apr 2018, MichaelDaum)Edit Attach

Item14681: virtual hosting creator creates a VirtualHost.conf from _template.conf, but should be called .cfg

pencil
Priority: Normal
Current State: Confirmed
Released In: n/a
Target Release: n/a
Applies To: Extension
Component:
Branches:
Reported By: MichaelDaum
Waiting For:
Last Change By: MichaelDaum
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

 

ItemTemplate edit

Summary virtual hosting creator creates a VirtualHost.conf from _template.conf, but should be called .cfg
ReportedBy MichaelDaum
Codebase
SVN Range
AppliesTo Extension
Component
Priority Normal
CurrentState Confirmed
WaitingFor
Checkins
TargetRelease n/a
ReleasedIn n/a
CheckinsOnBranches
trunkCheckins
masterCheckins
ItemBranchCheckins
Release02x01Checkins
Release02x00Checkins
Release01x01Checkins
Topic revision: r1 - 11 Apr 2018, MichaelDaum
The copyright of the content on this website is held by the contributing authors, except where stated elsewhere. See Copyright Statement. Creative Commons License    Legal Imprint    Privacy Policy