Roll back supplementary groups
This PR removes the supplementary groups addition to the service files on Linux. Turns out that the override does not support variables, so it is not possible to supply the groups this way. The right way to do this is to run something like: ``` sudo systemctl edit duplicati.service ``` Then add the directive: ``` [Service] SupplementaryGroups=media backup ``` When saving, an override file will be created, likely in: ``` /etc/systemd/system/duplicati.service.d/override.conf ``` You can now reload the daemon, and the override will persist even on package upgrades.
This commit is contained in:
@@ -8,6 +8,3 @@
|
||||
|
||||
# Additional options that are passed to the Daemon.
|
||||
DAEMON_OPTS=""
|
||||
|
||||
# Supplementary groups to inherit if not running as root
|
||||
SUPPLEMENTARY_GROUPS=
|
||||
|
||||
@@ -8,6 +8,3 @@
|
||||
|
||||
# Additional options that are passed to the Daemon.
|
||||
DAEMON_OPTS=""
|
||||
|
||||
# Supplementary groups to inherit if not running as root
|
||||
SUPPLEMENTARY_GROUPS=
|
||||
|
||||
@@ -9,7 +9,6 @@ IOSchedulingPriority=7
|
||||
EnvironmentFile=-/etc/default/duplicati
|
||||
ExecStart=/usr/bin/duplicati-server $DAEMON_OPTS
|
||||
Restart=always
|
||||
SupplementaryGroups=$SUPPLEMENTARY_GROUPS
|
||||
|
||||
[Install]
|
||||
WantedBy=multi-user.target
|
||||
|
||||
@@ -9,6 +9,3 @@
|
||||
|
||||
# Additional options that are passed to the Daemon.
|
||||
DAEMON_OPTS=""
|
||||
|
||||
# Supplementary groups to inherit if not running as root
|
||||
SUPPLEMENTARY_GROUPS=
|
||||
|
||||
@@ -9,6 +9,3 @@
|
||||
|
||||
# Additional options that are passed to the Daemon.
|
||||
DAEMON_OPTS=""
|
||||
|
||||
# Supplementary groups to inherit if not running as root
|
||||
SUPPLEMENTARY_GROUPS=
|
||||
|
||||
@@ -9,7 +9,6 @@ IOSchedulingPriority=7
|
||||
EnvironmentFile=-/etc/sysconfig/duplicati
|
||||
ExecStart=/usr/bin/duplicati-server $DAEMON_OPTS
|
||||
Restart=on-failure
|
||||
SupplementaryGroups=$SUPPLEMENTARY_GROUPS
|
||||
|
||||
[Install]
|
||||
WantedBy=multi-user.target
|
||||
|
||||
Reference in New Issue
Block a user