mirror of
https://github.com/ovh/the-bastion.git
synced 2026-05-09 08:25:27 +02:00
[PR #139] [MERGED] enh: install: use in-place overwrite for sudoers files #269
Labels
No labels
answered
bug
documentation
enhancement
enhancement
feature
feature
kept-open-for-info
pull-request
question
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/the-bastion#269
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/ovh/the-bastion/pull/139
Author: @speed47
Created: 2/8/2021
Status: ✅ Merged
Merged: 2/14/2021
Merged by: @speed47
Base:
master← Head:sudorace2📝 Commits (2)
d1fdad7enh: install: use in-place overwrite for sudoers files3b380cdchore: ghactions: use latest freebsdvm action version📊 Changes
5 files changed (+68 additions, -29 deletions)
View changed files
📝
.github/workflows/freebsd.yml(+2 -1)📝
bin/admin/install(+53 -21)📝
bin/admin/osh-sync-watcher.sh(+4 -7)📝
bin/sudogen/generate-sudoers.sh(+8 -0)📝
lib/shell/functions.inc(+1 -0)📄 Description
This fixes a race condition in sudo where it would log a log of
error messages to syslog if used while we're running the install
script: files around sudoers.d/ are then moved around, and it'll
yell for each file it previously listed if the file no longer
exists when it tries to stat() it. It also deprecates the --no-wait
flag of the install script, as now the sudoers.d/ directory will
always have integrity at all times.
Signed-off-by: Stéphane Lesimple stephane.lesimple+bastion@ovhcloud.com
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.