[28340] in Source-Commits
scripts commit: Update the apt-file cache; fix whitespace
daemon@ATHENA.MIT.EDU (Jonathan D Reed)
Thu Jul 10 10:08:27 2014
Date: Thu, 10 Jul 2014 10:08:19 -0400
From: Jonathan D Reed <jdreed@MIT.EDU>
Message-Id: <201407101408.s6AE8JKD009319@drugstore.mit.edu>
To: source-commits@MIT.EDU
https://github.com/mit-athena/scripts/commit/d1809a241735be5919d307748faddafb99edc1a1
commit d1809a241735be5919d307748faddafb99edc1a1
Author: Jonathan Reed <jdreed@mit.edu>
Date: Thu Jul 10 09:47:40 2014 -0400
Update the apt-file cache; fix whitespace
Force an update of the apt-file cache on cluster (Trac: #1490)
so that users don't get prompted for it on first login.
Also, remove some stray whitespace at the end of the file
installer/install-debathena.beta.sh | 5 ++++-
1 files changed, 4 insertions(+), 1 deletions(-)
diff --git a/installer/install-debathena.beta.sh b/installer/install-debathena.beta.sh
index 0b933ae..87e9104 100644
--- a/installer/install-debathena.beta.sh
+++ b/installer/install-debathena.beta.sh
@@ -548,6 +548,10 @@ if [ "$divertedbg" = "yes" ]; then
fi
if [ cluster = "$category" ] ; then
+ if hash apt-file >/dev/null 2>&1; then
+ output "Updating the apt-file cache..."
+ apt-file update
+ fi
# Force an /etc/adjtime entry so there's no confusion about whether the
# hardware clock is UTC or local.
echo "Setting hardware clock to UTC."
@@ -556,4 +560,3 @@ fi
# Remove the pxe install flag
rm -f /root/pxe-install-flag
-
\ No newline at end of file