-
Notifications
You must be signed in to change notification settings - Fork 10
/
Copy pathinstall.sh
executable file
·47 lines (34 loc) · 1.09 KB
/
install.sh
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
37
38
39
40
41
42
43
44
45
46
#!/bin/bash
# Install script for installing Quoddy. For now the main focus is on the "test" scenario
# to support our development of an automated suite of "smoke tests" to run on the Jenkins CI
# server.
function installDefault {
echo "Not implemented yet. Aborting."
exit
}
function installTest {
echo "Proceeding with TEST install"
# make sure the test db instance exists
$(dropdb -U postgres quoddy_test)
createdb -U postgres quoddy_test
# apply the Quartz db ddl scripts
psql -U postgres -h localhost -d quoddy_test -f sql/quartz_sql.sql
psql -U postgres -h localhost -d quoddy_test -f sql/quartz_sql_new.sql
# copy the current application.yml file to the config location specified in the run script
cp grails-app/conf/application.yml /opt/fogcutter/quoddy/application.yml
echo "Done"
exit
}
case $1 in
"default")
echo "Doing default install!"
installDefault
;;
"test")
echo "Doing test install!"
installTest
;;
*)
echo "Unknown installation profile!"
;;
esac