virtual-appliance/appliances/teamplayer/local.start
Albert Hopkins f79cc8a353 Move appliances/configs/scripts to seperate directories.
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.
2014-06-09 02:26:17 +00:00

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