feat: Add option to disable Samba

This commit is contained in:
Kroese 2024-03-11 13:44:45 +01:00 committed by GitHub
parent 1a6f95f7cf
commit a583e329a5
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -1,7 +1,10 @@
#!/usr/bin/env bash
set -Eeuo pipefail
: "${SAMBA:="Y"}"
[[ "$DHCP" == [Yy1]* ]] && return 0
[[ "$SAMBA" != [Yy1]* ]] && return 0
SHARE="$STORAGE/shared"