Item9958: Problems with tools/virtualhosts-create.sh

pencil
Priority: Normal
Current State: Closed
Released In: n/a
Target Release: n/a
Applies To: Extension
Component: VirtualHostingContrib
Branches: Item14408 master
Reported By: DaveHayes
Waiting For:
Last Change By: MichaelDaum
Here are some issues I've noticed with tools/virtualhosts-create.sh on 1.1.1

  • stat -c is not portable to FreeBSD, you might want to also try stat -f '%u:%g'
  • In your perl command lines to get VIRTUAL_HOSTS_DIR and others, you also need the switch -I${FOSWIKI_HOME}/lib/CPAN/lib (at least that's what I used to get it to work)
  • In your copy_web() script, it seems there is no "Main" in the pub directory in a fresh install (the only thing I found in ${FOSWIKI_HOME}/pub was "System". This causes the script to fail in the middle.

I hope this is the right place to put this.

-- DaveHayes - 04 Nov 2010

Dave. I keep on moving your signature and COMMENT tag below your text. The COMMENT field only works of it is AFTER your text and signature.

-- KennethLavrsen - 04 Nov 2010

I'm getting bitten by stat -c and the copy_web issues under FreeBSD as well, today.

-- HarlanStenn - 03 Mar 2012

Hi, can you please try the attached patch and write a similar if statement that "detects" FreeBSD's stat and does the appropriate call?

-- AntonioTerceiro - 05 Mar 2012

Thanks Antonio - I've updated your patch and attached it here.

-- HarlanStenn - 05 Mar 2012

  • Made copy of pub directory check if it exists
  • Creates .htpasswd file.
But major fix is to convert this to a Configure wizard. That avoids the shell incompatibilities with freebsd.

-- GeorgeClark - 29 May 2017
 
Topic revision: r9 - 20 Jun 2017, MichaelDaum - This page was cached on 23 Aug 2017 - 02:33.

The copyright of the content on this website is held by the contributing authors, except where stated elsewhere. See Copyright Statement. Creative Commons License