]> rtime.felk.cvut.cz Git - novaboot.git/blob - tests/create-server-test-account
Fixes for all tests to pass on NixOS
[novaboot.git] / tests / create-server-test-account
1 #!/bin/sh
2
3 # Creates an account needed for running some tests in ./server.wv.
4
5 set -x
6 set -e
7
8 sudo adduser-novaboot --key ~/.ssh/id_rsa.pub --admin-id=$USER novaboot-test
9 sudo chsh --shell $(realpath $(dirname $0)/../server/novaboot-shell) novaboot-test
10 sudo tee /etc/sudoers.d/novaboot-test <<EOF
11 $USER  ALL=(novaboot-test) NOPASSWD: ALL
12 EOF