setup composition-sync

This commit is contained in:
m8in
2026-04-19 23:09:15 +02:00
parent d16b2706d6
commit 65efb9481b
4 changed files with 75 additions and 0 deletions
@@ -0,0 +1,10 @@
# Definition: 2 mandantory parameter, 3. and 4. are optional
# [[:space:]]+ -> Expects at least on space character
# ( ... )? -> defines the group as optional
Cmnd_Alias C_COMPOSITION_SYNC = \
/cis/script/host/zfs/composition-sync/sync-send.sh \
^[a-zA-Z0-9][a-zA-Z0-9._-]* \
[a-zA-Z0-9][a-zA-Z0-9_-]* \
([a-zA-Z0-9][a-zA-Z0-9._:-]*)? \
([a-zA-Z0-9][a-zA-Z0-9._:-]*)?$
composition-sync ALL = (root) NOPASSWD: C_COMPOSITION_SYNC