summaryrefslogtreecommitdiffstats
path: root/abs/mv-core/MythVantage-config/install_proxy.sh
diff options
context:
space:
mode:
authorJames Meyer <james.meyer@operamail.com>2008-11-23 02:41:18 (GMT)
committerJames Meyer <james.meyer@operamail.com>2008-11-23 02:41:18 (GMT)
commite340d2a6219f25904e79ebb5524b65e8fc65e956 (patch)
tree7d432bb1181b8ace66c458d91e321f24093d2369 /abs/mv-core/MythVantage-config/install_proxy.sh
parent4761d543ab407c84351b4d4428df6cc801166f3f (diff)
downloadlinhes_pkgbuild-e340d2a6219f25904e79ebb5524b65e8fc65e956.zip
linhes_pkgbuild-e340d2a6219f25904e79ebb5524b65e8fc65e956.tar.gz
linhes_pkgbuild-e340d2a6219f25904e79ebb5524b65e8fc65e956.tar.bz2
backport from linhes
Diffstat (limited to 'abs/mv-core/MythVantage-config/install_proxy.sh')
-rwxr-xr-xabs/mv-core/MythVantage-config/install_proxy.sh22
1 files changed, 21 insertions, 1 deletions
diff --git a/abs/mv-core/MythVantage-config/install_proxy.sh b/abs/mv-core/MythVantage-config/install_proxy.sh
index 4f8e088..d0be6c3 100755
--- a/abs/mv-core/MythVantage-config/install_proxy.sh
+++ b/abs/mv-core/MythVantage-config/install_proxy.sh
@@ -31,6 +31,25 @@ fi
}
+function apply_new_auth () {
+#check if file is present
+ if [ -f /root/myth_user_call.out ]
+ then
+ #read in file, running each command in chroot
+ exec 4</root/myth_user_call.out
+ while read LINE <&4
+ do
+ if [ ! x"$LINE" = x ]
+ then
+ #run commands in chroot
+ chroot "$mountpoint" $MV_ROOT/bin/myth_user_call -i $LINE > /tmp/user_auth.update
+ fi
+ done
+ rm -f /root/myth_user_call.out
+ else
+ echo "No new password changes to apply"
+ fi
+}
@@ -87,7 +106,7 @@ full_install () {
cp -f $MV_ROOT/bin/*.sh "$mountpoint"$MV_ROOT/bin/
chmod -R 755 ${mountpoint}/root
cp /etc/mtab "$mountpoint"/etc/mtab
-
+ apply_new_auth
if [ $SystemType = "Master_backend" -o $SystemType = "Standalone" ]
then
@@ -216,6 +235,7 @@ function upgrade () {
#Run second time
chroot "$mountpoint" $MV_ROOT/bin/systemconfig.sh misc,hostype,network,advanced,this_is_install
chroot "$mountpoint" $MV_ROOT/bin/systemconfig.sh advanced,this_is_install
+ apply_new_auth
umount "$mountpoint/dev"
umount "$mountpoint/proc"
echo "Done" > /tmp/.install_state