#!/bin/sh # this script should be placed in the tar file along with the cert files # to upload the cert to the bullet (sh upload ) FILES="ca.crt client.crt client.key up.sh client.conf" HOST=$1 REMOTE=/etc/openvpn DIR=$(dirname $0) cd $DIR scp $FILES root@$HOST:$REMOTE ssh root@$HOST /sbin/reboot