X-Git-Url: https://iankelling.org/git/?a=blobdiff_plain;f=distro-begin;h=214c33f95e6cf99b6b9a9090d771db1af44625f5;hb=d46190aff6f5dc65bd39524e3937dc5765895b42;hp=dde7c8e6afd9f3c67fa5785b55ae540988680100;hpb=a5ab31675fd4b19fb5dcd32987c3323f0686fed0;p=distro-setup diff --git a/distro-begin b/distro-begin index dde7c8e..214c33f 100755 --- a/distro-begin +++ b/distro-begin @@ -30,7 +30,7 @@ sudo bash -c 'source /a/c/.bashrc && source /a/exe/ssh-emacs-setup' # set the scrollback to unlimited in case something goes wrong if [[ $EUID == 0 ]]; then - if getent passwd ian; then + if getent passwd iank || getent passwd ian ; then echo "$0: error: running as root. unprivileged user exists. use it." exit 1 else @@ -167,7 +167,7 @@ fi distro=$(distro-name) case $distro in ubuntu|debian|trisquel) - sudo bash -c ". /a/bin/fai/fai-wrapper && /a/bin/fai/fai/config/scripts/GRUB_PC/11-ian" + sudo bash -c ". /a/bin/fai/fai-wrapper && /a/bin/fai/fai/config/scripts/GRUB_PC/11-iank" ;; *) sudo bash -c ". /a/bin/fai/fai-wrapper && @@ -207,8 +207,8 @@ $interactive || set -x # passwordless sudo -tu /etc/sudoers <<'EOF' -ian ALL=(ALL) NOPASSWD: ALL +tu /etc/sudoers <