mario / webbies-fireplace

Server deployment made a cookie

mario (author)
Sun Dec 28 15:49:24 -0800 2008
commit  b3ebfbafcb5b8f15c97e4e839a235566b3e2bb1d
tree    183b4d5d71fe6946d94ecf12a5512f9767f3b1c1
parent  a559b36d87735319f1c156cba109698f464b5bbe
webbies-fireplace / fireplace-beta.sh
100755 36 lines (29 sloc) 0.993 kb
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
#!/bin/bash
 
echo 'Copyright (C) 2008-2009 Mario Danic <mario.danic@gmail.com>'
echo 'Modified by Brendan "Phobos" Almonte <almonteb@datawh.net>'
echo 'Ramaze stack is copyright (c) 2008-2009 Pistos'
echo "Welcome to Webby's fireplace"
echo 'This tiny script is a wrapper around various'
echo 'provided server deployment scripts.'
 
echo 'This is beta!!'
 
PS3="Your choice: "
 
select stackname in "ramaze" "gitosis" "trac" "grails" "mysql" "postgresql" "lamp" "subversion" "lighttpd" "quit"; do
 
if [ "$stackname" = "quit" ]; then
exit 0
   elif [ "$stackname" = "trac" -o "$stackname" = "subversion" ]; then
echo 'Project name:'
read $PROJECT
echo 'Developer name:'
read $DEVELOPER
cd "$stackname"-stack
./build-"$stackname"-stack.sh $PROJECT $DEVELOPER
   else
if [ -f "$stackname"-stack/build-"$stackname"-stack.sh ]; then
cd "$stackname"-stack
./build-"$stackname"-stack.sh
else
echo "Bad choice, going out for a walk!"
exit 2
fi
fi
done