Update installdebian.sh

This commit is contained in:
cpzengel 2022-02-01 16:22:38 +01:00 committed by GitHub
parent 5056263b31
commit ebd5cb8932
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -40,7 +40,7 @@ esac
# create Share with Compression, Samba share has to be in smb.conf to work with Snapshots later # create Share with Compression, Samba share has to be in smb.conf to work with Snapshots later
zfs create -o compression=lz4 tank/share zfs create -o compression=lz4 tank/share
chmod -R 770 /tank chmod -R 770 /tank
chown -R ubuntu:root /tank chown -R root:root /tank
# check Mirror to be online, otherwise Power Indicator like LED or Buzzer # check Mirror to be online, otherwise Power Indicator like LED or Buzzer
echo -e "PATH="/usr/bin:/bin:/usr/local/sbin:/usr/sbin:/sbin"\n*/1 * * * * root echo 14 > /sys/class/gpio/export 2> /dev/null;echo out > /sys/class/gpio/gpio14/direction ; zpool import -fa -d /dev/ > /dev/null; zpool list| grep -q ONLINE; echo \$? > /sys/class/gpio/gpio14/value" | tee "/etc/cron.d/raidled" echo -e "PATH="/usr/bin:/bin:/usr/local/sbin:/usr/sbin:/sbin"\n*/1 * * * * root echo 14 > /sys/class/gpio/export 2> /dev/null;echo out > /sys/class/gpio/gpio14/direction ; zpool import -fa -d /dev/ > /dev/null; zpool list| grep -q ONLINE; echo \$? > /sys/class/gpio/gpio14/value" | tee "/etc/cron.d/raidled"