Browse Source

added auto update script and systemd service file

hnhx 3 years ago
parent
commit
b62893e620
2 changed files with 26 additions and 0 deletions
  1. 7 0
      auto_updater.sh
  2. 19 0
      librex_updater.service

+ 7 - 0
auto_updater.sh

@@ -0,0 +1,7 @@
+#!/bin/sh
+while true; do
+	git stash
+	git pull
+	sleep 60
+done
+	

+ 19 - 0
librex_updater.service

@@ -0,0 +1,19 @@
+[Unit]
+Description=LibreX - A privacy respecting free as in freedom meta search enginei
+After=syslog.target
+After=network.target
+
+[Service]
+RestartSec=10s
+Type=simple
+
+User=librex
+Group=librex
+
+WorkingDirectory=/path/to/librex
+ExecStart=/path/to/librex/auto_updater.sh
+
+Restart=always
+
+[Install]
+WantedBy=multi-user.target