Welcome to mirror list, hosted at ThFree Co, Russian Federation.

1.16.0.sh « updates - github.com/nextcloud/nextcloudpi.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 25fd8525b5e8681483f5b9cde270fd8f69abbf92 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
#!/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

# missed some sources
sed -i 's/stretch/buster/g' /etc/apt/sources.list.d/* &>/dev/null || true

# 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
  chmod +x /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
  }

  # Update btrfs-snp
  wget https://raw.githubusercontent.com/nachoparker/btrfs-snp/master/btrfs-snp -O /usr/local/bin/btrfs-snp
  chmod +x /usr/local/bin/btrfs-snp
}

exit 0