Set a valid file name for sudoers config

This commit is contained in:
Manuel Thalmann 2024-03-24 13:08:45 +01:00
parent 2fef5e494d
commit 8d37e46323

View file

@ -7,7 +7,7 @@ pushd "$rootDir" > /dev/null;
function autoRoot() { function autoRoot() {
{ {
echo "$USER ALL=(ALL:ALL) NOPASSWD: ALL" echo "$USER ALL=(ALL:ALL) NOPASSWD: ALL"
} | sudo tee "/etc/sudoers.d/PortValhalla.conf" > /dev/null; } | sudo tee "/etc/sudoers.d/PortValhalla" > /dev/null;
} }
runHook initialize \ runHook initialize \
@ -32,6 +32,6 @@ runHook initializeProfile \
. "$(pwd)/../../../scripts/Common/Config/UserProfile/install.sh"; . "$(pwd)/../../../scripts/Common/Config/UserProfile/install.sh";
runHook postInstall \ runHook postInstall \
rm "/etc/sudoers.d/PortValhalla.conf"; rm "/etc/sudoers.d/PortValhalla";
popd > /dev/null; popd > /dev/null;