From: Michal Sojka Date: Sat, 16 Nov 2019 22:15:25 +0000 (+0100) Subject: test: Add script for creating test account X-Git-Tag: 20201217~23 X-Git-Url: http://rtime.felk.cvut.cz/gitweb/novaboot.git/commitdiff_plain/ad6c3f55e0e9ab62b200b524a446f12dc44e6612?hp=3ff51fbf7b986b873287842aa53a928b7f0d3868 test: Add script for creating test account --- diff --git a/tests/create-server-test-account b/tests/create-server-test-account new file mode 100755 index 0000000..370d31a --- /dev/null +++ b/tests/create-server-test-account @@ -0,0 +1,12 @@ +#!/bin/sh + +# Creates an account needed for running some tests in ./server.wv. + +set -x +set -e + +sudo adduser-novaboot --key ~/.ssh/id_rsa.pub --admin-id=$USER novaboot-test +sudo chsh --shell $(realpath $(dirname $0)/../server/novaboot-shell) novaboot-test +sudo tee /etc/sudoers.d/novaboot-test <