mirror of https://github.com/supernets/LibreY.git
added auto update script and systemd service file
This commit is contained in:
parent
b07e6fa0a5
commit
b62893e620
|
@ -0,0 +1,7 @@
|
|||
#!/bin/sh
|
||||
while true; do
|
||||
git stash
|
||||
git pull
|
||||
sleep 60
|
||||
done
|
||||
|
|
@ -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…
Reference in New Issue