mirror of
https://github.com/hnhx/librex.git
synced 2025-04-29 14:09:27 -04:00
added auto update script and systemd service file
This commit is contained in:
parent
b07e6fa0a5
commit
b62893e620
2 changed files with 26 additions and 0 deletions
7
auto_updater.sh
Executable file
7
auto_updater.sh
Executable file
|
@ -0,0 +1,7 @@
|
|||
#!/bin/sh
|
||||
while true; do
|
||||
git stash
|
||||
git pull
|
||||
sleep 60
|
||||
done
|
||||
|
19
librex_updater.service
Normal file
19
librex_updater.service
Normal 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
|
Loading…
Add table
Reference in a new issue