Skip to content
This repository was archived by the owner on Jul 24, 2024. It is now read-only.

Commit 52268b2

Browse files
authored
Merge pull request #19 from linuxserver-labs/s6v3
2 parents 019331c + 3e0a97a commit 52268b2

File tree

14 files changed

+69
-38
lines changed

14 files changed

+69
-38
lines changed

Dockerfile

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,6 @@ RUN \
1414
echo "**** install packages ****" && \
1515
apt-get update && \
1616
apt-get install --no-install-recommends -y \
17-
bash \
18-
curl \
1917
gnupg \
2018
jsvc \
2119
libcap2 \

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -239,6 +239,7 @@ Once registered you can define the dockerfile to use with `-f Dockerfile.aarch64
239239

240240
## Versions
241241

242+
* **01.03.23:** - Migrate to s6v3
242243
* **12.01.22:** - Switch to MongoDB 4.4
243244
* **29.09.21:** - Documentation updates
244245
* **13.08.21:** - Initial Release

root/etc/cont-init.d/50-config

Lines changed: 0 additions & 35 deletions
This file was deleted.
Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
───────────────────────────────────────
2+
3+
██╗ ███████╗██╗ ██████╗
4+
██║ ██╔════╝██║██╔═══██╗
5+
██║ ███████╗██║██║ ██║
6+
██║ ╚════██║██║██║ ██║
7+
███████╗███████║██║╚██████╔╝
8+
╚══════╝╚══════╝╚═╝ ╚═════╝
9+
10+
█ █▀▀▄ █▀▀▄ █▀▀
11+
█ █▄▄█ █▀▀▄ ▀▀▄
12+
▀▀▀ ▀ ▀ ▀▀▀▀ ▀▀▀
13+
14+
Brought to you by linuxserver.io
15+
───────────────────────────────────────

root/etc/s6-overlay/s6-rc.d/init-config-end/dependencies.d/init-omada-config

Whitespace-only changes.

root/etc/s6-overlay/s6-rc.d/init-omada-config/dependencies.d/init-config

Whitespace-only changes.
Lines changed: 48 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,48 @@
1+
#!/usr/bin/with-contenv bash
2+
# shellcheck shell=bash
3+
4+
#Symlinks
5+
symlinks=( \
6+
/app/omada/data \
7+
/app/omada/properties \
8+
)
9+
10+
shopt -s globstar dotglob
11+
12+
for i in "${symlinks[@]}"; do
13+
if [[ -d /config/"$(basename "$i")" && ! -L "$i" ]]; then
14+
rm -rf "$i"
15+
fi
16+
if [[ ! -d /config/"$(basename "$i")" && ! -L "$i" ]]; then
17+
mv "$i" /config/
18+
fi
19+
if [[ -d /config/"$(basename "$i")" && ! -L "$i" ]]; then
20+
ln -s /config/"$(basename "$i")" "$i"
21+
fi
22+
done
23+
24+
symlinks=( \
25+
/app/omada/logs \
26+
/app/omada/work \
27+
)
28+
29+
for i in "${symlinks[@]}"; do
30+
if [[ -d /config/"$(basename "$i")" && ! -L "$i" ]]; then
31+
rm -rf "$i"
32+
fi
33+
if [[ ! -d /config/"$(basename "$i")" && ! -L "$i" ]]; then
34+
mkdir -p /config/"$(basename "$i")"
35+
fi
36+
if [[ -d /config/"$(basename "$i")" && ! -L "$i" ]]; then
37+
ln -s /config/"$(basename "$i")" "$i"
38+
fi
39+
done
40+
41+
shopt -u globstar dotglob
42+
43+
mkdir -p /app/omada/data/autobackup
44+
45+
#Permissions
46+
lsiown -R abc:abc \
47+
/config \
48+
/app
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
oneshot
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
/etc/s6-overlay/s6-rc.d/init-omada-config/run

root/etc/s6-overlay/s6-rc.d/svc-omada/dependencies.d/init-services

Whitespace-only changes.

0 commit comments

Comments
 (0)