diff options
author | Matthew Lemon <matt@matthewlemon.com> | 2022-07-01 09:13:08 +0100 |
---|---|---|
committer | Matthew Lemon <matt@matthewlemon.com> | 2022-07-01 09:13:08 +0100 |
commit | b3b77d2a2d75064d429cc6c2b5348b6cc71837ef (patch) | |
tree | cd1f3424e00975dfeda235b0bbf0a8b64dc80692 | |
parent | f615957ab6d8119daa736b9bbdce08b3858db6e0 (diff) |
working on provision script
-rwxr-xr-x | provision_openbsd.ksh | 23 |
1 files changed, 18 insertions, 5 deletions
diff --git a/provision_openbsd.ksh b/provision_openbsd.ksh index b89a610..a0047ff 100755 --- a/provision_openbsd.ksh +++ b/provision_openbsd.ksh @@ -1,13 +1,26 @@ #!/bin/ksh # Send in id_rsa.pub and id_rsa -# send in /etc/doas.conf -# send in openbsddotfiles/profile_vm_provisioning (or similar) +# send in /etc/doas.conf and install and chown root:wheel /etc/doas.conf +# pkg_add git in guest +# send in openbsddotfiles/profile_vm_provisioning (or similar) and rename to .profile +# source .profile in guest # send in THIS FILE AND EXECUTE IT ON THERE -echo "Provisioning this machine for basic development work..." +# download ISO from https://cdn.openbsd.org/pub/OpenBSD/$(uname -r)/amd64/install71.iso + ssh-add -v -#pkg_add vim git the_silver_searcher universal-ctags zip + +while getopts c provopts +do + case $provopts in + c) flag=1, print "Got flag" ;; + ?) print "Bonkers"; exit ;; + esac +done + + +pkg_add vim the_silver_searcher zip echo -n "Creating necessary directories..." mkdir -p ~/code/python @@ -49,7 +62,7 @@ fi echo -n "Creating symlinks..." ln -sf openbsddotfiles/kshrc_vm_provision .kshrc ln -sf openbsddotfiles/ksh_aliases .ksh_aliases -ln -sf openbsddotfiles/profile .profile +ln -sf openbsddotfiles/profile_vm_provisioning .profile ln -sf openbsddotfiles/tmux.conf .tmux.conf ln -sf openbsddotfiles/vim .vim ln -sf openbsddotfiles/gitconfig .gitconfig |