summaryrefslogtreecommitdiff
path: root/web/update-remote.sh
diff options
context:
space:
mode:
Diffstat (limited to 'web/update-remote.sh')
-rwxr-xr-xweb/update-remote.sh11
1 files changed, 11 insertions, 0 deletions
diff --git a/web/update-remote.sh b/web/update-remote.sh
new file mode 100755
index 0000000..a861b60
--- /dev/null
+++ b/web/update-remote.sh
@@ -0,0 +1,11 @@
+#!/bin/sh
+
+REPLY=0
+read -p "are you sure you want to update the remote website? (y/n) " REPLY
+
+if [[ "$REPLY" == "y" ]]; then
+ for i in $(ls -1 ./dist/); do
+ echo "copying $i"
+ scp -r ./dist/$i root@networkheaven.net:/var/www/html/
+ done
+fi