mirror of
https://git.FreeBSD.org/ports.git
synced 2024-12-13 03:03:15 +00:00
Perform some post-install stuff: add users and create the mythconverg
database if it doesn't already exist.
This commit is contained in:
parent
3fe64eed13
commit
ce57b22c43
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=182588
23
multimedia/mythtv/files/makedb
Normal file
23
multimedia/mythtv/files/makedb
Normal file
@ -0,0 +1,23 @@
|
||||
#!/bin/sh
|
||||
#
|
||||
# $FreeBSD$
|
||||
#
|
||||
# Install the MythTV database. We only do this if it doesn't already
|
||||
# exist.
|
||||
#
|
||||
# Start mysqld if it isn't running.
|
||||
pgrep mysqld > /dev/null || /usr/local/etc/rc.d/mysql start || exit
|
||||
# Try to create the database
|
||||
mysql < /usr/local/share/mythtv/database/mc.sql
|
||||
if [ $? -ne 0 ]; then
|
||||
echo <<EOF
|
||||
*********************************************************************
|
||||
Database creation failed. Please read the output above and create it
|
||||
manually. The commands to create the database are in
|
||||
/usr/local/share/mythtv/database/mc.sql.
|
||||
*********************************************************************
|
||||
EOF
|
||||
else
|
||||
echo <<EOF
|
||||
Created database mythconverg.
|
||||
EOF
|
Loading…
Reference in New Issue
Block a user