forked from Sysdeploy/openwrt
15 lines
331 B
Plaintext
15 lines
331 B
Plaintext
|
VERSION=1
|
||
|
|
||
|
[ "$(uci -q get defaults.version.docker)" -ge "$VERSION" ] && exit 0
|
||
|
|
||
|
# save version
|
||
|
/sbin/uci set defaults.version.docker="$VERSION"
|
||
|
|
||
|
/sbin/uci -q batch << EOF
|
||
|
set defaults.version.docker="$VERSION"
|
||
|
commit defaults
|
||
|
set docker.globals=globals
|
||
|
set docker.globals.alt_config_file=/etc/docker/daemon.json
|
||
|
commit docker
|
||
|
EOF
|