From 333bbd9af367243832c9b4ad1f0f50e0db0f6b13 Mon Sep 17 00:00:00 2001 From: Sarimoko Date: Sun, 13 Feb 2022 05:23:31 -0800 Subject: [PATCH] auto git --- www/gitpull.php | 8 ++++++++ www/gitpull.sh | 10 ++++++++++ www/index.html | 26 ++++++++++++++++++-------- 3 files changed, 36 insertions(+), 8 deletions(-) create mode 100644 www/gitpull.php create mode 100644 www/gitpull.sh diff --git a/www/gitpull.php b/www/gitpull.php new file mode 100644 index 0000000..35393d6 --- /dev/null +++ b/www/gitpull.php @@ -0,0 +1,8 @@ +\n"); +chdir('/var/www/Boto'); +touch(GITPULLMASTER); +?> \ No newline at end of file diff --git a/www/gitpull.sh b/www/gitpull.sh new file mode 100644 index 0000000..5657fcc --- /dev/null +++ b/www/gitpull.sh @@ -0,0 +1,10 @@ +#!/bin/bash + +cd /home/user/www/example.com/repository +while true ; do + if [[ -f GITPULLMASTER ]] ; then + git pull > gitpull.log 2>&1 + mv GITPULLMASTER GITPULLMASTER.`date +"%Y%m%d%H%M%S"` + fi + sleep 10 +done \ No newline at end of file diff --git a/www/index.html b/www/index.html index 687e237..7de8a0e 100644 --- a/www/index.html +++ b/www/index.html @@ -1,16 +1,26 @@ - - - Sariboto - + + + Twitch Chat Counter + -

+
+
+

Type 1 in the chat!

+ (broadcaster only) +
+ !start-count | !end-count | !clear-count +
+
+
+ +

Waiting for count...

- - +
+ + \ No newline at end of file