summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rwxr-xr-xupdate_jdn.sh4
1 files changed, 4 insertions, 0 deletions
diff --git a/update_jdn.sh b/update_jdn.sh
index 85505236..d9308a97 100755
--- a/update_jdn.sh
+++ b/update_jdn.sh
@@ -496,6 +496,10 @@ if [ -f /etc/debian_version ] ; then
;;
esac
fi
+ # remove unattended-upgrades if it's installed
+ if [ -n "$(dpkg -l unattended-upgrades 2>/dev/null|egrep 'ii.*unattended-upgrades')" ] ; then
+ apt-get -y purge unattended-upgrades
+ fi
# we need mock from bpo to build current fedora
if [ "$HOSTNAME" = "profitbricks-build3-amd64" ] || [ "$HOSTNAME" = "profitbricks-build4-amd64" ] || [ "$HOSTNAME" = "jenkins" ] ; then
$UP2DATE || sudo apt-get install -t jessie-backports mock \