18d161bdc3
And remove gitignore rules that prevented it from being added. Change-Id: If2a52d98ffd94eacc7b2166a4fe553850ba084d0
10 lines
255 B
Bash
Executable File
10 lines
255 B
Bash
Executable File
#!/bin/bash
|
|
|
|
set -eux
|
|
set -o pipefail
|
|
|
|
echo "Adding rescue user with root privileges..."
|
|
crypted_pass=$(</etc/ipa-rescue-config/ipa-rescue-password)
|
|
useradd -m rescue -G wheel -p $crypted_pass
|
|
echo "rescue ALL=(ALL) NOPASSWD: ALL" > /etc/sudoers.d/rescue
|