Add a variable storing the sudoers
config file name
This commit is contained in:
parent
b1565daf3f
commit
c2df03ce2d
1 changed files with 3 additions and 2 deletions
|
@ -1,5 +1,6 @@
|
|||
#!/bin/bash
|
||||
rootDir="${BASH_SOURCE%/*}";
|
||||
customPortValhallaSudoConfigFile="/etc/sudoers.d/1337_PortValhalla"
|
||||
pushd "$rootDir" > /dev/null;
|
||||
|
||||
. "../../Common/Scripts/hooks.sh";
|
||||
|
@ -7,7 +8,7 @@ pushd "$rootDir" > /dev/null;
|
|||
function autoRoot() {
|
||||
{
|
||||
echo "$USER ALL=(ALL:ALL) NOPASSWD: ALL"
|
||||
} | sudo tee "/etc/sudoers.d/PortValhalla" > /dev/null;
|
||||
} | sudo tee "$customPortValhallaSudoConfigFile" > /dev/null;
|
||||
}
|
||||
|
||||
runHook initialize \
|
||||
|
@ -32,6 +33,6 @@ runHook initializeProfile \
|
|||
. "$(pwd)/../../../scripts/Common/Config/UserProfile/install.sh";
|
||||
|
||||
runHook postInstall \
|
||||
sudo rm "/etc/sudoers.d/PortValhalla";
|
||||
sudo rm "$customPortValhallaSudoConfigFile";
|
||||
|
||||
popd > /dev/null;
|
||||
|
|
Loading…
Reference in a new issue