mirror of
https://github.com/NixOS/nixpkgs.git
synced 2026-06-05 21:03:40 +00:00
nixos/run0: add a shebang to the run0 sudo-alias script
This commit is contained in:
@@ -8,7 +8,7 @@
|
||||
let
|
||||
cfg = config.security.run0;
|
||||
|
||||
sudoAlias = pkgs.writeScriptBin "sudo" ''
|
||||
sudoAlias = pkgs.writeShellScriptBin "sudo" ''
|
||||
if [[ "$1" == -* ]]; then
|
||||
echo "This script is a sudo-alias to systemd's run0 and does not support any sudo parameters."
|
||||
exit 1
|
||||
|
||||
Reference in New Issue
Block a user