@@ -9,9 +9,9 @@ readonly CRYPTSETUP_MIN_VERSION="2.4.0"
99readonly ST_USER_1="none" # Set to username to enable (e.g., "alice")
1010readonly ST_USER_2="none" # Set to username to enable (e.g., "bob")
1111
12- # Service names (automatically constructed)
13- readonly ST_SERVICE_1="${ ST_USER_1:+ syncthing@${ST_USER_1}.service}"
14- readonly ST_SERVICE_2="${ ST_USER_2:+ syncthing@${ST_USER_2}.service}"
12+ # Service names (automatically constructed from user names )
13+ readonly ST_SERVICE_1=$([ "$ ST_USER_1" != "none" ] && echo " syncthing@${ST_USER_1}.service" || echo "none")
14+ readonly ST_SERVICE_2=$([ "$ ST_USER_2" != "none" ] && echo " syncthing@${ST_USER_2}.service" || echo "none")
1515readonly DOCKER_SERVICE="none" # Set to "docker.service" to enable
1616
1717# -----------------------------------------------------------------------------
@@ -25,6 +25,9 @@ readonly PRIMARY_DATA_LVM_GROUP="vg-srv" # LVM group name (used if LVM volume i
2525readonly PRIMARY_DATA_UUID="none" # Set to device UUID to enable (find with: sudo blkid)
2626readonly PRIMARY_DATA_KEY_FILE="none" # Set to key file path for automated unlock
2727readonly PRIMARY_DATA_ENCRYPTION_TYPE="luks" # Options: "luks" or "bitlocker"
28+ readonly PRIMARY_DATA_OWNER_USER="none" # Set to username for mount ownership (e.g., "sync_srv")
29+ readonly PRIMARY_DATA_OWNER_GROUP="none" # Set to group name for mount ownership (e.g., "sync_srv")
30+ readonly PRIMARY_DATA_MOUNT_OPTIONS="defaults" # Additional mount options (umask, etc.)
2831
2932# -----------------------------------------------------------------------------
3033# Storage devices for Syncthing service 1
@@ -37,6 +40,9 @@ readonly STORAGE_1A_LVM_GROUP="vg-srv" # LVM group name (used if LVM volume is
3740readonly STORAGE_1A_UUID="none" # Set to device UUID to enable (find with: sudo blkid)
3841readonly STORAGE_1A_KEY_FILE="none" # Set to key file path for automated unlock
3942readonly STORAGE_1A_ENCRYPTION_TYPE="luks" # Options: "luks" or "bitlocker"
43+ readonly STORAGE_1A_OWNER_USER="none" # Set to username for mount ownership (e.g., "sync_srv")
44+ readonly STORAGE_1A_OWNER_GROUP="none" # Set to group name for mount ownership (e.g., "sync_srv")
45+ readonly STORAGE_1A_MOUNT_OPTIONS="defaults" # Additional mount options (umask, etc.)
4046
4147readonly STORAGE_1B_MOUNT="storage1b" # Mount point under /mnt/
4248readonly STORAGE_1B_MAPPER="storage1b-data" # Device mapper name
@@ -45,6 +51,9 @@ readonly STORAGE_1B_LVM_GROUP="vg-srv" # LVM group name (used if LVM volume is
4551readonly STORAGE_1B_UUID="none" # Set to device UUID to enable (find with: sudo blkid)
4652readonly STORAGE_1B_KEY_FILE="none" # Set to key file path for automated unlock
4753readonly STORAGE_1B_ENCRYPTION_TYPE="luks" # Options: "luks" or "bitlocker"
54+ readonly STORAGE_1B_OWNER_USER="none" # Set to username for mount ownership (e.g., "sync_srv")
55+ readonly STORAGE_1B_OWNER_GROUP="none" # Set to group name for mount ownership (e.g., "sync_srv")
56+ readonly STORAGE_1B_MOUNT_OPTIONS="defaults" # Additional mount options (umask, etc.)
4857
4958# -----------------------------------------------------------------------------
5059# Storage devices for Syncthing service 2
@@ -57,6 +66,9 @@ readonly STORAGE_2A_LVM_GROUP="vg-srv" # LVM group name (used if LVM volume is
5766readonly STORAGE_2A_UUID="none" # Set to device UUID to enable (find with: sudo blkid)
5867readonly STORAGE_2A_KEY_FILE="none" # Set to key file path for automated unlock
5968readonly STORAGE_2A_ENCRYPTION_TYPE="luks" # Options: "luks" or "bitlocker"
69+ readonly STORAGE_2A_OWNER_USER="none" # Set to username for mount ownership (e.g., "sync_srv")
70+ readonly STORAGE_2A_OWNER_GROUP="none" # Set to group name for mount ownership (e.g., "sync_srv")
71+ readonly STORAGE_2A_MOUNT_OPTIONS="defaults" # Additional mount options (umask, etc.)
6072
6173readonly STORAGE_2B_MOUNT="storage2b" # Mount point under /mnt/
6274readonly STORAGE_2B_MAPPER="storage2b-data" # Device mapper name
@@ -65,6 +77,9 @@ readonly STORAGE_2B_LVM_GROUP="vg-srv" # LVM group name (used if LVM volume is
6577readonly STORAGE_2B_UUID="none" # Set to device UUID to enable (find with: sudo blkid)
6678readonly STORAGE_2B_KEY_FILE="none" # Set to key file path for automated unlock
6779readonly STORAGE_2B_ENCRYPTION_TYPE="luks" # Options: "luks" or "bitlocker"
80+ readonly STORAGE_2B_OWNER_USER="none" # Set to username for mount ownership (e.g., "sync_srv")
81+ readonly STORAGE_2B_OWNER_GROUP="none" # Set to group name for mount ownership (e.g., "sync_srv")
82+ readonly STORAGE_2B_MOUNT_OPTIONS="defaults" # Additional mount options (umask, etc.)
6883
6984# -----------------------------------------------------------------------------
7085# Network share configuration
@@ -74,4 +89,6 @@ readonly NETWORK_SHARE_ADDRESS="none" # Set to share path to enable (e.g., "//s
7489readonly NETWORK_SHARE_MOUNT="none" # Set to mount name (e.g., "network")
7590readonly NETWORK_SHARE_PROTOCOL="none" # Set to protocol: "cifs", "nfs", etc.
7691readonly NETWORK_SHARE_CREDENTIALS="none" # Set to credentials file path
77- readonly NETWORK_SHARE_OPTIONS="uid=1000,gid=1000,iocharset=utf8" # Mount options
92+ readonly NETWORK_SHARE_OWNER_USER="none" # Set to username for mount ownership (e.g., "sync_srv")
93+ readonly NETWORK_SHARE_OWNER_GROUP="none" # Set to group name for mount ownership (e.g., "sync_srv")
94+ readonly NETWORK_SHARE_OPTIONS="iocharset=utf8" # Additional mount options (vers=3.0, etc.)
0 commit comments