summaryrefslogtreecommitdiffstats
path: root/abs/core-testing/LinHES-config/install_db_chroot.sh
diff options
context:
space:
mode:
authorJames Meyer <james.meyer@operamail.com>2009-01-04 18:49:09 (GMT)
committerJames Meyer <james.meyer@operamail.com>2009-01-04 18:49:09 (GMT)
commit29e945b91760568116a21e0076fae046b33a2663 (patch)
tree5623cb38e621cb4be85785fca6ec477ef9e7e83f /abs/core-testing/LinHES-config/install_db_chroot.sh
parent3cc7a26ef6ce5928401162cff95e8a860c8daa36 (diff)
downloadlinhes_pkgbuild-29e945b91760568116a21e0076fae046b33a2663.zip
linhes_pkgbuild-29e945b91760568116a21e0076fae046b33a2663.tar.gz
linhes_pkgbuild-29e945b91760568116a21e0076fae046b33a2663.tar.bz2
Add more useful debugging output.
Cleanup some error messages. introduce cp_and_log function. introduce kill_dhcp_chroot fix umounting of /new_boot fix copying of mdadm.conf
Diffstat (limited to 'abs/core-testing/LinHES-config/install_db_chroot.sh')
-rwxr-xr-xabs/core-testing/LinHES-config/install_db_chroot.sh18
1 files changed, 14 insertions, 4 deletions
diff --git a/abs/core-testing/LinHES-config/install_db_chroot.sh b/abs/core-testing/LinHES-config/install_db_chroot.sh
index 1ec8cec..5dcef79 100755
--- a/abs/core-testing/LinHES-config/install_db_chroot.sh
+++ b/abs/core-testing/LinHES-config/install_db_chroot.sh
@@ -1,10 +1,17 @@
#!/bin/bash
. /etc/profile
. /etc/systemconfig
-#myhost=`cat /etc/hostname`
+
+
myhost=$hostname
hostname $myhost
-mount -t proc none /proc
+echo $myhost > /etc/hostname
+echo "install_db_chroot hostname is $hostname"
+
+. $MV_ROOT/bin/install_functions.sh
+#myhost=`cat /etc/hostname`
+
+#mount -t proc none /proc
pacman --noconfirm -Sf mysql
/etc/rc.d/mysqld
@@ -32,20 +39,23 @@ do
then
$MV_ROOT/bin/restore_default_settings.sh -c BECONFIG -s master -a $dbhost
fi
+ update_db_settings HostServiceMythWEB "1"
+ echo 'UseMythWEB="1"' >> /etc/systemconfig
+
#update database to allow user jobs on this host.
$MV_ROOT/bin/restore_default_settings.sh -c USERJOBALLOW
$MV_ROOT/bin/restore_default_settings.sh -c ACCESSCONTROL
if [ -d /data/srv/mysql/mythconverg ]
#if [ -d /var/lib/mysql/mythconverg ]
then
- # pacman --noconfirm -R webcalendar
+ # pacman --noconfirm -R webcalendar
# pacman --noconfirm --nodeps -S webcalendar
status=0
fi
fi
fi
done
-#/etc/rc.d/mysqld stop
+/etc/rc.d/mysqld stop
#umount /proc