This repository was archived by the owner on Jan 7, 2024. It is now read-only.
File tree Expand file tree Collapse file tree 3 files changed +14
-7
lines changed Expand file tree Collapse file tree 3 files changed +14
-7
lines changed Original file line number Diff line number Diff line change @@ -7,7 +7,7 @@ LABEL build_version="Linuxserver.io version:- ${VERSION} Build-date:- ${BUILD_DA
7
7
LABEL maintainer="sparklyballs"
8
8
9
9
# package versions
10
- ARG UNIFI_VER="5.6.26 "
10
+ ARG UNIFI_VER="5.6.29 "
11
11
12
12
# environment settings
13
13
ARG DEBIAN_FRONTEND="noninteractive"
Original file line number Diff line number Diff line change @@ -99,6 +99,8 @@ Use `ubnt` as the password to login and `$address` is the IP address of the host
99
99
100
100
## Versions
101
101
102
+ + ** 08.02.18:** Use loop to simplify symlinks.
103
+ + ** 08.01.18:** Update to 5.6.29.
102
104
+ ** 15.12.17:** Update to 5.6.26.
103
105
+ ** 09.12.17:** Fix continuation lines.
104
106
+ ** 12.11.17:** Add STUN server port 3478 mapping to example.
Original file line number Diff line number Diff line change 4
4
mkdir -p \
5
5
/config/{data,logs,run}
6
6
7
+
7
8
# create symlinks for config
8
- [[ -L /usr/lib/unifi/data && ! /usr/lib/unifi/data -ef /config/data ]] && unlink /usr/lib/unifi/data
9
- [[ -L /usr/lib/unifi/logs && ! /usr/lib/unifi/logs -ef /config/logs ]] && unlink /usr/lib/unifi/logs
10
- [[ -L /usr/lib/unifi/run && ! /usr/lib/unifi/run -ef /config/run ]] && unlink /usr/lib/unifi/run
11
- [[ ! -L /usr/lib/unifi/data ]] && ln -s /config/data /usr/lib/unifi/data
12
- [[ ! -L /usr/lib/unifi/logs ]] && ln -s /config/logs /usr/lib/unifi/logs
13
- [[ ! -L /usr/lib/unifi/run ]] && ln -s /config/run /usr/lib/unifi/run
9
+ symlinks=( \
10
+ /usr/lib/unifi/data \
11
+ /usr/lib/unifi/logs \
12
+ /usr/lib/unifi/run )
13
+
14
+ for i in "${symlinks[@]}"
15
+ do
16
+ [[ -L "$i" && ! "$i" -ef /config/"$(basename "$i")" ]] && unlink "$i"
17
+ [[ ! -L "$i" ]] && ln -s /config/"$(basename "$i")" "$i"
18
+ done
14
19
15
20
# permissions
16
21
chown -R abc:abc \
You can’t perform that action at this time.
0 commit comments