From d8ffd6a892da99359167e92232aec8328932d9e2 Mon Sep 17 00:00:00 2001 From: Christian Heller Date: Sat, 15 Dec 2018 12:08:58 +0100 Subject: [PATCH] Remove automatic git pulling of website repo. --- .../web/etc/systemd/system/pull_website.service | 5 ----- .../systemd/system/timers.target.wants/pull_website.timer | 8 -------- all_new_2018/setup_web.sh | 1 - 3 files changed, 14 deletions(-) delete mode 100644 all_new_2018/linkable_etc_files/web/etc/systemd/system/pull_website.service delete mode 100644 all_new_2018/linkable_etc_files/web/etc/systemd/system/timers.target.wants/pull_website.timer diff --git a/all_new_2018/linkable_etc_files/web/etc/systemd/system/pull_website.service b/all_new_2018/linkable_etc_files/web/etc/systemd/system/pull_website.service deleted file mode 100644 index ea32ec7..0000000 --- a/all_new_2018/linkable_etc_files/web/etc/systemd/system/pull_website.service +++ /dev/null @@ -1,5 +0,0 @@ -[Unit] -Description=Pull website repo -[Service] -Type=oneshot -ExecStart=/bin/sh -c 'cd /var/www && git pull' diff --git a/all_new_2018/linkable_etc_files/web/etc/systemd/system/timers.target.wants/pull_website.timer b/all_new_2018/linkable_etc_files/web/etc/systemd/system/timers.target.wants/pull_website.timer deleted file mode 100644 index 6a42507..0000000 --- a/all_new_2018/linkable_etc_files/web/etc/systemd/system/timers.target.wants/pull_website.timer +++ /dev/null @@ -1,8 +0,0 @@ -[Unit] -Description=Pull website repo every minute - -[Timer] -OnCalendar=*-*-* *:*:00,15,30,45 - -[Install] -WantedBy=timers.target diff --git a/all_new_2018/setup_web.sh b/all_new_2018/setup_web.sh index e046da7..661aa74 100755 --- a/all_new_2018/setup_web.sh +++ b/all_new_2018/setup_web.sh @@ -11,4 +11,3 @@ apt -y -o Dpkg::Options::=--force-confold install nginx gitweb fcgiwrap mkdir /var/public_repos chown plom:plom /var/public_repos iptables-restore /etc/iptables/rules.v4 -systemctl start pull_website.timer -- 2.30.2