about summary refs log tree commit diff
diff options
context:
space:
mode:
-rwxr-xr-xupdate.sh2
-rwxr-xr-xupdate_articles.sh2
2 files changed, 4 insertions, 0 deletions
diff --git a/update.sh b/update.sh
new file mode 100755
index 0000000..71abbe2
--- /dev/null
+++ b/update.sh
@@ -0,0 +1,2 @@
+#!/usr/bin/bash
+cd /opt/blog.node5.net_flask/ && sudo -u blog git pull && sudo systemctl restart blog.node5.net
\ No newline at end of file
diff --git a/update_articles.sh b/update_articles.sh
new file mode 100755
index 0000000..8e4850a
--- /dev/null
+++ b/update_articles.sh
@@ -0,0 +1,2 @@
+#!/usr/bin/bash
+cd /opt/blog.node5.net_flask/ && sudo -u blog git submodule update --recursive --remote && sudo systemctl reload blog.node5.net
\ No newline at end of file