added auto update script and systemd service file

This commit is contained in:
hnhx 2022-04-27 20:50:38 +02:00
parent b07e6fa0a5
commit b62893e620
2 changed files with 26 additions and 0 deletions

7
auto_updater.sh Executable file
View File

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

19
librex_updater.service Normal file
View File

@ -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