Actualiser server

Mylloon 2023-12-23 20:37:19 +01:00
parent 9886cbf13c
commit 16d863e504
Signed by: Forgejo
GPG key ID: E72245C752A07631

@ -1,5 +1,10 @@
only reboot if rsync isnt working only reboot if vpn isn't used
```bash ```bash
if [[ $(ps ax | grep rsync | grep <ip local server> | wc -l) -lt 2 ]]; then shutdown --reboot now; fi if [ $(ifstat -i tun0 1s 1 | awk 'NR==3 {print $1}' | sed 's#\..*##') -eq 0 ]; then systemctl reboot; fi
```
fix routing
> replace `<localip>` by the IP
```bash
if [ $(ip route | grep <localip> | wc -l) -ne 1 ]; then /root/openvpn/routing.sh; fi
``` ```
* penser à remplacer `<ip local server>`