PKGBUILDs/alarm/plugui-git/plugui.install
2012-06-14 12:49:19 -04:00

20 lines
423 B
Text

plugui_setup() {
echo "Synchronizing database.."
python2 /opt/PlugUI/manage.py syncdb --noinput
echo "Running maintenance system.."
/opt/PlugUI/plugmaintenance.py > /dev/null 2>&1
}
post_install() {
plugui_setup
echo ""
echo "To start PlugUI type: /etc/rc.d/plugui start"
echo ""
echo "Add 'plugui' to the end of the DAEMONS list in /etc/rc.conf to start on boot."
}
post_upgrade() {
plugui_setup
}