Skip to content

Commit

Permalink
unattended upgrades: delete default config in stretch
Browse files Browse the repository at this point in the history
  • Loading branch information
nachoparker committed Sep 4, 2017
1 parent 87b1509 commit 997f610
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
1 change: 1 addition & 0 deletions etc/nextcloudpi-config.d/unattended-upgrades.sh
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ install()
{
apt-get update
apt install -y --no-install-recommends unattended-upgrades
rm /etc/apt/apt.conf.d/20auto-upgrades
}

configure()
Expand Down
3 changes: 3 additions & 0 deletions update.sh
Original file line number Diff line number Diff line change
Expand Up @@ -108,6 +108,9 @@ EOF
rm -f /etc/udev/rules.d/50-automount.rules /usr/local/etc/blknum
udevadm control --reload-rules

# remove default config file in stretch
rm -f /etc/apt/apt.conf.d/20auto-upgrades

# restart PHP
sleep 3
systemctl stop php7.0-fpm
Expand Down

0 comments on commit 997f610

Please sign in to comment.