mirror of
https://github.com/luscis/openlan.git
synced 2025-10-05 16:47:11 +08:00
19 lines
445 B
Bash
Executable File
19 lines
445 B
Bash
Executable File
#!/bin/bash
|
|
|
|
set -ex
|
|
|
|
## Upgrade ovsdb
|
|
# ovsdb-client convert unix:///var/openlan/confd/confd.sock /etc/openlan/switch/confd.schema.json
|
|
|
|
## Enable check for DDNS
|
|
# [root@centos ~]# crontab -l
|
|
# 0,5,10,15,20,25,30,35,40,45,50,55 * * * * /var/openlan/script/update.sh
|
|
# [root@centos ~]#
|
|
|
|
## Update your DDNS
|
|
export VERSION=v6
|
|
names=$(openlan na ls | grep -w 'name:' | sed 's/name://g')
|
|
for name in $names; do
|
|
openlan name add --name $name
|
|
done
|