Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
script to simplify webapp-config
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Documentation, Tips & Tricks
View previous topic :: View next topic  
Author Message
safeness
Tux's lil' helper
Tux's lil' helper


Joined: 02 Jul 2004
Posts: 95
Location: Eastside, WA

PostPosted: Thu Nov 03, 2005 12:58 am    Post subject: script to simplify webapp-config Reply with quote

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
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Documentation, Tips & Tricks All times are GMT
Page 1 of 1

 
Jump to:  
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