View previous topic :: View next topic |
Author |
Message |
safeness Tux's lil' helper


Joined: 02 Jul 2004 Posts: 95 Location: Eastside, WA
|
Posted: Thu Nov 03, 2005 12:58 am Post subject: script to simplify webapp-config |
|
|
I made this script because of some difficulties I had with installing web apps with a different DocumentRoot. Make sure that you set the vhosts use flag when installing new web apps.
Code: | #!/bin/bash
# created by safeness <chillinator at gmail dot com>
# a simplified way to install with webapp-config in a different DocumentRoot such as /var/www/localhost/htdocs/drupal
#
# set DOCROOT to your DocumentRoot and set HOST to the appropriate host you want to install to
DOCROOT="drupal"
HOST="localhost"
if [ $UID -ne 0 ]
then
echo "This must be run as root."
exit 67
fi
if [ -n "$1" ]
then
webapp-config -I -h $HOST -d /$DOCROOT/$1 $2 $3
else
echo "Usage: webinstall <dir inside DocumentRoot> <app name> <version>"
echo "Example: webinstall gallery2 gallery 2.0.1 -- This installs gallery-2.0.1 into /var/www/localhost/htdocs/drupal/gallery2"
fi
|
_________________ "The freedom of opinion and the reasonable maintenance of it is not a crime and ought not to occasion injury." --Thomas Jefferson |
|
Back to top |
|
 |
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|