From 0a039896aa04afd486cb651ba23697dfdc3da2a2 Mon Sep 17 00:00:00 2001 From: 12nick12 Date: Wed, 6 Jun 2018 07:02:31 -0400 Subject: [PATCH] Update and rename createdatabase.sh to prep.sh --- server/{createdatabase.sh => prep.sh} | 4 ++++ 1 file changed, 4 insertions(+) rename server/{createdatabase.sh => prep.sh} (54%) diff --git a/server/createdatabase.sh b/server/prep.sh similarity index 54% rename from server/createdatabase.sh rename to server/prep.sh index 0c86b4d..37929ba 100644 --- a/server/createdatabase.sh +++ b/server/prep.sh @@ -1,2 +1,6 @@ dir=/opt/sshjump +username=sshjump + +adduser $username +chmod -R $username:$username $dir sqlite3 $dir/sshjump.db 'create table sshjump(host, ip, port, id);'