]> rtime.felk.cvut.cz Git - novaboot.git/commitdiff
tests: Fix SSH key setup
authorMichal Sojka <sojkam1@fel.cvut.cz>
Sat, 26 Aug 2017 09:40:04 +0000 (11:40 +0200)
committerMichal Sojka <sojkam1@fel.cvut.cz>
Sat, 26 Aug 2017 10:37:27 +0000 (12:37 +0200)
tests/server.wv

index c885aab9f458607b3361de83dac4fca845ee4aa2..68ad6df4e6c31e0739b1a900078be1f85cfa9b48 100755 (executable)
@@ -83,6 +83,8 @@ AUTH="$WV_BASE_DIR/home-novaboot-test/.ssh/authorized_keys"
 WVSTART "Setup SSH server's admin key"
 WVPASS ssh-add -L > keys
 WVPASS test $(wc -l < keys) -gt 0
+WVPASS mkdir -p $(dirname $AUTH)
+WVPASS chmod 700 $(dirname $AUTH)
 WVPASS echo 'command="user test admin"' $(tail -n 1 keys) > $AUTH
 
 WVSTART "Novaboot --ssh option (connect, rsync, reset)"