fix nixos-edit init as root
This commit is contained in:
parent
9b989892a4
commit
50666f356d
1 changed files with 1 additions and 1 deletions
|
@ -4,7 +4,7 @@ pkgs.writeShellScriptBin "nixos-edit" ''
|
|||
#!/bin/sh
|
||||
|
||||
if [ "$1" = "init" ] ; then
|
||||
if [ "$(whoami)" != root ] ; then
|
||||
if [ "$(whoami)" = root ] ; then
|
||||
echo "re-executing as tudbut"
|
||||
echo -n "set password for tudbut? (Y/n) "
|
||||
read yn
|
||||
|
|
Loading…
Add table
Reference in a new issue