A bash script for easily deploying a directory of website files to your personal TCNJ website at https://www.tcnj.edu/~username.
If you have curl
installed (or can install it by running sudo apt install curl
):
$ sudo curl -o /usr/bin/tcnj-deploy https://raw.githubusercontent.com/TomerAberbach/tcnj-deploy/main/tcnj-deploy.sh
Otherwise download the script and rename/move it to /usr/bin
:
$ sudo mv tcnj-deploy.sh /usr/bin/tcnj-deploy
Lastly, make the file executable:
$ sudo chmod +x /usr/bin/tcnj-deploy
$ tcnj-deploy <directory>
Your ~/www
directory is cleared prior to copying your files so use with caution!
The proper permissions are set on your copied files for you.
Simply remove the the script file:
$ sudo rm /usr/bin/tcnj-deploy