Readme updated

This commit is contained in:
matic_t
2020-07-09 07:59:14 -07:00
parent 64676f725e
commit c79679719f
2 changed files with 49 additions and 10 deletions

View File

@@ -4,8 +4,6 @@
#VPS_PASSWORD= vps password
#VPS_USERNAME= user name inside vps
#API_KEY= $(cat path/to/api/token/file)
echo "Must uncomment and fill in variables inside build_and_upload.sh"
exit 1
if [[ -z "$1" ]]; then
@@ -16,5 +14,5 @@ fi
PLUGIN_NAME=$1
API_KEY=$API_KEY make
tar czf - ./config.json ./bundle.js ./local.js ./main.css ./main.html | ssh $USERNAME -p $VPS_PASSWORD "cd plugins && mkdir -p $PLUGIN_NAME && cd $PLUGIN_NAME && tar xvzf -"
tar czf - ./config.json ./bundle.js ./local.js ./main.css ./main.html | ssh $USERNAME -p $VPS_PASSWORD "cd plugins && mkdir $PLUGIN_NAME && cd $PLUGIN_NAME && tar xvzf -"
ssh -t $USERNAME -p $VPS_PASSWORD "sudo ln -s /home/$VPS_USERNAME/plugins/$PLUGIN_NAME /home/ozbolt/plugins/$PLUGIN_NAME"