forked from stmansour/rentroll
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathprodsetup.sh
executable file
·39 lines (36 loc) · 1019 Bytes
/
prodsetup.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
#!/bin/bash
#------------------------------------------------------------------------------
# prodsetup.sh
# Set up a production node before rentroll is launched for the first time.
# The tasks in this file need only be done once, before rentroll is launched.
#
# Tasks:
# 1. Pull down the production config
#
# Notes:
# 1. Env values:
# 0 = development
# 1 = production
# 2 = QA
#------------------------------------------------------------------------------
HOST=localhost
PROGNAME="rentroll"
PORT=8270
WATCHDOGOPTS=""
GETFILE="/usr/local/accord/bin/getfile.sh"
RENTROLLHOME="/home/ec2-user/apps/${PROGNAME}"
DATABASENAME="${PROGNAME}"
DBUSER="ec2-user"
IAM=$(whoami)
OS=$(uname)
makeProdNode() {
${GETFILE} accord/db/confprod.json ; mv confprod.json config.json >log.out 2>&1
if [ -f config.json ]; then
chmod 600 config.json
fi
}
makeProdNode
./pdfinstall.sh >log.out 2>&1
if [ ! -f "/usr/local/share/man/man1/rentroll.1" ]; then
./installman.sh >installman.log 2>&1
fi