f79cc8a353
Instead of having everything in the root directory, split them in seperate directories (appliances, scripts, & configs). This makes things a little tidier. Also added a now Makefile target, appliance-list, that prints a list of the available appliances. The split directory change made this easier.
17 lines
383 B
Bash
Executable File
17 lines
383 B
Bash
Executable File
#!/bin/sh
|
|
|
|
LOGFILE="/var/log/teamplayer/teamplayer.log"
|
|
|
|
if [ ! -f /etc/firstboot ] ; then
|
|
echo "Creating TeamPlayer database ..."
|
|
createuser -U postgres -D -S -R teamplayer
|
|
createdb -U postgres teamplayer
|
|
touch "$LOGFILE"
|
|
chown TP_USER:TP_USER "$LOGFILE"
|
|
fi
|
|
|
|
su -c "TP_HOME/bin/start-teamplayer" TP_USER
|
|
#tailf "$LOGFILE" > /dev/console &
|
|
|
|
touch /etc/firstboot
|