nextcloudpi/updates/1.16.0.sh
nachoparker e30271f96f armbian: fix distro check
Signed-off-by: nachoparker <nacho@ownyourbits.com>
2019-07-24 17:26:05 -06:00

39 lines
884 B
Bash

#!/bin/bash
set -e
## BACKWARD FIXES ( for older images )
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
# install lsb-release
apt-get install -y --no-install-recommends lsb-release
# docker images only
[[ -f /.docker-image ]] && {
:
}
# for non docker images
[[ ! -f /.docker-image ]] && {
# Update btrfs-sync
wget -q https://raw.githubusercontent.com/nachoparker/btrfs-sync/master/btrfs-sync -O /usr/local/bin/btrfs-sync
# work around dhcpcd Raspbian bug
# https://lb.raspberrypi.org/forums/viewtopic.php?t=230779
# https://github.com/nextcloud/nextcloudpi/issues/938
test -f /usr/bin/raspi-config && {
apt-get update
apt-get install -y --no-install-recommends haveged
systemctl enable haveged.service
}
}
exit 0