diff --git a/changelog.md b/changelog.md index 3438f8a6b..745566767 100644 --- a/changelog.md +++ b/changelog.md @@ -1,7 +1,9 @@ -[v1.16.8](https://github.com/nextcloud/nextcloudpi/commit/c35c752) (2019-09-16) unattended-upgrades: fix armbian disabling UU +[v1.16.9](https://github.com/nextcloud/nextcloudpi/commit/c855204) (2019-09-28) fix apt stuck in interactive conf file dialog -[v1.16.7](https://github.com/nextcloud/nextcloudpi/commit/9ee9947) (2019-09-11) Increased modsecurity bodynofileslimit so larger files can be synced (#993) +[v1.16.8](https://github.com/nextcloud/nextcloudpi/commit/f885861) (2019-09-16) unattended-upgrades: fix armbian disabling UU + +[v1.16.7 ](https://github.com/nextcloud/nextcloudpi/commit/9ee9947) (2019-09-11) Increased modsecurity bodynofileslimit so larger files can be synced (#993) [v1.16.6](https://github.com/nextcloud/nextcloudpi/commit/dbf129f) (2019-09-13) nc-datadir: fix diff --git a/etc/library.sh b/etc/library.sh index b6a13c690..9c53d7784 100644 --- a/etc/library.sh +++ b/etc/library.sh @@ -278,6 +278,12 @@ function check_distro() return 1 } +function apt_install() +{ + apt-get update + apt-get install -y --no-install-recommends -o Dpkg::Options::=--force-confdef +} + # License # # This script is free software; you can redistribute it and/or modify it diff --git a/updates/1.13.6.sh b/updates/1.13.6.sh index 8877e868f..e532c47e1 100644 --- a/updates/1.13.6.sh +++ b/updates/1.13.6.sh @@ -83,7 +83,7 @@ EOF # update launchers apt-get update - apt-get install -y --no-install-recommends file + apt_install file cat > /home/www/ncp-launcher.sh <<'EOF' #!/bin/bash grep -q '[\\&#;`|*?~<>^()[{}$&[:space:]]' <<< "$*" && exit 1 diff --git a/updates/1.16.0.sh b/updates/1.16.0.sh index 79893bbde..c6560a955 100644 --- a/updates/1.16.0.sh +++ b/updates/1.16.0.sh @@ -9,11 +9,10 @@ source /usr/local/etc/library.sh # all images # restore smbclient after dist upgrade -apt-get update -apt-get install -y --no-install-recommends php-smbclient exfat-fuse exfat-utils +apt_install php-smbclient exfat-fuse exfat-utils # install lsb-release -apt-get install -y --no-install-recommends lsb-release +apt_install lsb-release # tweak previews ncc config:app:set preview jpeg_quality --value="60" @@ -37,7 +36,7 @@ sed -i "s/stretch/$RELEASE/g" /etc/apt/sources.list.d/* &>/dev/null || true # https://github.com/nextcloud/nextcloudpi/issues/938 test -f /usr/bin/raspi-config && { apt-get update - apt-get install -y --no-install-recommends haveged + apt_install haveged systemctl enable haveged.service } diff --git a/updates/1.17.0.sh b/updates/1.17.0.sh index 8255e25a2..d63e6f8cf 100644 --- a/updates/1.17.0.sh +++ b/updates/1.17.0.sh @@ -12,8 +12,7 @@ source /usr/local/etc/library.sh # sets NCVER PHPVER RELEASE sed -i "s/buster/$RELEASE/g" /etc/apt/sources.list.d/* &>/dev/null || true # restore smbclient after dist upgrade -apt-get update -apt-get install -y --no-install-recommends php${PHPVER}-gmp +apt_install php${PHPVER}-gmp # Update modsecurity config file only if user is already in buster and # modsecurity is used.