mirror of
https://github.com/fscotto/infra.git
synced 2026-10-03 21:39:50 +00:00
Fix Atlas Borg runtime permissions
This commit is contained in:
@@ -87,7 +87,10 @@ exec 9>/run/lock/atlas-zfs-snapshot.lock
|
||||
zpool list -H -o name "$pool" >/dev/null
|
||||
rm -rf "$stage"
|
||||
mkdir -p "$stage"
|
||||
chown root:"$borg_group" /run/atlas-borg "$stage"
|
||||
# Keep systemd's root:root ownership of RuntimeDirectory: changing it makes
|
||||
# ExecStopPost re-chown its contents, which SELinux denies for the marker.
|
||||
setfacl -m "u:${borg_user}:rx" /run/atlas-borg
|
||||
chown root:"$borg_group" "$stage"
|
||||
chmod 0750 /run/atlas-borg "$stage"
|
||||
|
||||
flock 9
|
||||
|
||||
@@ -1,12 +1,12 @@
|
||||
[Unit]
|
||||
Description=Submit a 45Drives Alert for failed Atlas job %I
|
||||
Description=Submit a 45Drives Alert for failed Atlas job %i
|
||||
Requires=houston-dbus.service
|
||||
After=houston-dbus.service
|
||||
ConditionFileIsExecutable=/usr/local/libexec/atlas-health-monitor
|
||||
|
||||
[Service]
|
||||
Type=oneshot
|
||||
ExecStart=/usr/local/libexec/atlas-health-monitor --job-failed %I
|
||||
ExecStart=/usr/local/libexec/atlas-health-monitor --job-failed %i
|
||||
User=root
|
||||
Group=root
|
||||
UMask=0077
|
||||
|
||||
Reference in New Issue
Block a user