Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix bash remediation for sysctl template
The remediation breaks systemd-sysctl when executed multiple times. On first run, settings are correctly added to /etc/sysctl.conf and loaded by systemd-sysctl via the symlink /etc/sysctl.d/99-sysctl.conf -> /etc/sysctl.conf. On second run, the same settings are commented out in /etc/systcl.d/99-sysctl.conf, replacing the symlink with a copy of the file. Although the settings are again added to /etc/sysctl.conf, these are not loaded by systemd-sysctl due to the broken link. Fixes https://bugs.launchpad.net/usg/+bug/2056150
- Loading branch information