Compare commits
7 Commits
Author | SHA1 | Date | |
---|---|---|---|
f0bd8896bc | |||
c2d9875782 | |||
c19fd06281 | |||
0cce39e923 | |||
babcbe8312 | |||
382a102dcf | |||
|
eb108bef19 |
@ -1,3 +1,5 @@
|
||||
---- THIS IS A CLONE OF THE ORIGINAL REPOSITORY ON git.bashclub.org ----
|
||||
|
||||
# nasbeery
|
||||
Installer for NasBeery ZFS NAS for Raspberry PI 4 and 400 on Raspberry Pi OS Lite 64-Bit
|
||||
|
||||
@ -5,3 +7,9 @@ Installer for NasBeery ZFS NAS for Raspberry PI 4 and 400 on Raspberry Pi OS Lit
|
||||
wget -O setup-nasbeery https://github.com/bashclub/nasbeery/raw/main/setup-nasbeery
|
||||
bash setup-nasbeery
|
||||
```
|
||||
|
||||
# Authors
|
||||
### Christian Zengel
|
||||
https://aow.de
|
||||
### Thorsten Spille
|
||||
[<img src="https://storage.ko-fi.com/cdn/brandasset/kofi_s_tag_dark.png" rel="Support me on Ko-Fi">](https://ko-fi.com/thorakel)
|
||||
|
@ -100,6 +100,10 @@ elif [[ $(dpkg --get-selections | grep -E -m1 "linux-image-current-meson64") ]];
|
||||
headers="linux-headers-current-meson64"
|
||||
elif [[ $(dpkg --get-selections | grep -E -m1 "linux-image-edge-meson64") ]]; then
|
||||
headers="linux-headers-edge-meson64"
|
||||
elif [[ $(dpkg --get-selections | grep -m1 "linux-image-generic") ]]; then
|
||||
headers="linux-headers-generic"
|
||||
elif [[ $(dpkg --get-selections | grep -m1 "linux-image-raspi") ]]; then
|
||||
headers="linux-headers-raspi"
|
||||
elif [[ $(dpkg --get-selections | grep -m1 "linux-image-amd64") ]]; then
|
||||
headers="linux-headers-amd64"
|
||||
fi
|
||||
@ -125,16 +129,18 @@ apt -qq update
|
||||
echo "Installing samba"
|
||||
DEBIAN_FRONTEND=noninteractive DEBIAN_PRIORITY=critical apt -y -qq -o DPkg::options::="--force-confdef" -o DPkg::options::="--force-confold" install -t bullseye-backports acl samba-dsdb-modules samba-vfs-modules samba winbind wsdd zfs-dkms zfsutils-linux zfs-auto-snapshot
|
||||
|
||||
if [[ "$(arch)" == "aarch64" ]]; then
|
||||
ARCH=$(arch)
|
||||
|
||||
if [[ "${ARCH}" == "aarch64" ]] || [[ "${ARCH}" == "riscv64" ]]; then
|
||||
znapzend_version=$(apt search znapzend 2>/dev/null | grep znapzend | cut -d ' ' -f2)
|
||||
wget -O znapzend_${znapzend_version}_amd64.deb https://repo.45drives.com/debian/pool/main/z/znapzend/znapzend_${znapzend_version}_amd64.deb
|
||||
mkdir znapzend
|
||||
dpkg-deb -R znapzend_${znapzend_version}_amd64.deb ./znapzend
|
||||
sed -i "s/amd64/arm64/g" ./znapzend/DEBIAN/control
|
||||
sed -i "s/x86_64-linux-gnu/aarch64-linux-gnu/g" znapzend/usr/bin/*
|
||||
mv znapzend/usr/lib/x86_64-linux-gnu znapzend/usr/lib/aarch64-linux-gnu
|
||||
dpkg-deb -b znapzend znapzend_${znapzend_version}_arm64.deb
|
||||
apt install ./znapzend_${znapzend_version}_arm64.deb
|
||||
sed -i "s/amd64/${ARCH}/g" ./znapzend/DEBIAN/control
|
||||
sed -i "s/x86_64-linux-gnu/${ARCH}-linux-gnu/g" znapzend/usr/bin/*
|
||||
mv znapzend/usr/lib/x86_64-linux-gnu znapzend/usr/lib/${ARCH}-linux-gnu
|
||||
dpkg-deb -b znapzend znapzend_${znapzend_version}_${ARCH}.deb
|
||||
apt install ./znapzend_${znapzend_version}_${ARCH}.deb
|
||||
systemctl disable znapzend.service
|
||||
rm -r znapzend*
|
||||
fi
|
||||
|
Loading…
Reference in New Issue
Block a user