summaryrefslogtreecommitdiffstats
path: root/abs/core-testing/LinHES-config/install_db_chroot.sh
diff options
context:
space:
mode:
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