We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ac7bb65 commit 8c4bcb7Copy full SHA for 8c4bcb7
1 file changed
root/etc/cont-init.d/40-chown-files
@@ -1,14 +1,10 @@
1
#!/usr/bin/with-contenv bash
2
3
-# check for preferences file and if not found, exit out
4
-if [ ! -e "/config/Library/Application Support/Plex Media Server/Preferences.xml" ]; then
+# check for Library existence and permissions
+if [ ! -d "/config/Library" ]; then
5
mkdir -p /config/Library
6
- chown abc:abc \
7
- /config/Library
8
- exit 0
9
-fi
10
-
11
-if [ ! "$(stat -c %u /config/Library)" = "$PUID" ]; then
+ chown abc:abc /config/Library
+elif [ ! "$(stat -c %u /config/Library)" = "$PUID" ]; then
12
echo "Change in ownership detected, please be patient while we chown existing files"
13
echo "This could take some time"
14
chown abc:abc -R \
0 commit comments