-
-
Notifications
You must be signed in to change notification settings - Fork 70
/
run
executable file
·46 lines (39 loc) · 1.67 KB
/
run
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
#!/usr/bin/with-contenv bash
# shellcheck shell=bash
PUID=${PUID:-911}
PGID=${PGID:-911}
groupmod -o -g "$PGID" abc
usermod -o -u "$PUID" abc
cat /etc/s6-overlay/s6-rc.d/init-adduser/branding
if [[ -f /donate.txt ]]; then
echo '
To support the app dev(s) visit:'
cat /donate.txt
fi
echo '
To support LSIO projects visit:
https://www.linuxserver.io/donate/
───────────────────────────────────────
GID/UID
───────────────────────────────────────'
echo "
User UID: $(id -u abc)
User GID: $(id -g abc)
───────────────────────────────────────
"
if [[ "$(uname -m)" == "armv7l" ]] || [[ "$(uname -m)" == "armhf" ]]; then
echo '
╔═════════════════════════════════════════════════════╗
║ ║
║ The 32-bit Arm version of this image will ║
║ no longer be supported after 2023-07-01 ║
║ ║
║ See: https://linuxserver.io/armhf ║
║ for more details ║
║ ║
╚═════════════════════════════════════════════════════╝
'
fi
lsiown abc:abc /app
lsiown abc:abc /config
lsiown abc:abc /defaults