PKGBUILDs/core/plugui-git/plugui.install

21 lines
423 B
Text
Raw Normal View History

2011-04-06 02:53:56 +00:00
plugui_setup() {
2011-03-19 03:44:22 +00:00
echo "Synchronizing database.."
python2 /opt/PlugUI/manage.py syncdb --noinput
2011-04-06 02:53:56 +00:00
2011-03-19 03:44:22 +00:00
echo "Running maintenance system.."
/opt/PlugUI/plugmaintenance.py > /dev/null 2>&1
2011-04-06 02:53:56 +00:00
}
post_install() {
plugui_setup
2011-03-19 03:44:22 +00:00
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() {
2011-04-06 02:53:56 +00:00
plugui_setup
2011-03-19 03:44:22 +00:00
}