mirror of
https://github.com/ovh/the-bastion.git
synced 2026-05-09 08:25:27 +02:00
[PR #579] [MERGED] fix: check if first admin is already in adminAccounts #587
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#587
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/579
Author: @jon4hz
Created: 9/8/2025
Status: ✅ Merged
Merged: 9/8/2025
Merged by: @speed47
Base:
master← Head:check-admin-account📝 Commits (1)
5b467cdfix: check if first admin is already in adminAccounts📊 Changes
1 file changed (+14 additions, -1 deletions)
View changed files
📝
bin/admin/setup-first-admin-account.sh(+14 -1)📄 Description
Hi,
This PR adds a check to only add the first admin to the
adminAccountsif it isn't configure yet.For context: I'm writing an ansible role for test bastion that templates the
bastion.conf. If thesetup-first-admin-account.shscript writes to thebastion.confas well, it breaks the idempotency of my role.PS: The ansible role should be open sourced soon. I can open a PR to mention it in your README, if that's something you're interested in.
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.