Actualiser server
parent
9886cbf13c
commit
16d863e504
1 changed files with 8 additions and 3 deletions
11
server.md
11
server.md
|
@ -1,5 +1,10 @@
|
|||
only reboot if rsync isnt working
|
||||
only reboot if vpn isn't used
|
||||
```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>`
|
Loading…
Reference in a new issue