blob: edc3784fb82e4acf27a1219b9dea7498ef0a0329 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
|
#!/bin/bash
. /etc/profile
. /etc/systemconfig
rundb=1
if [ -f /var/log/mfdb.first.log ]
then
#check exit code
rundb=`tail -1 /var/log/mfdb.first.log`
fi
if [ ! $rundb = 0 ]
then
echo "Running 1st mythfilldatabase"
echo "Do not remove this file. This file is used to determine if mythfilldatabase needs to run before starting mythbackend" > /var/log/mfdb.first.log
/usr/bin/mythfilldatabase 2>&1 >> /var/log/mfdb.first.log
echo $? >> /var/log/mfdb.first.log
fi
|