mirror of
https://github.com/linuxserver/docker-plex.git
synced 2026-02-19 20:03:03 +08:00
add message box outline for no updates set
This commit is contained in:
parent
1ed5257235
commit
e92f5b104d
@ -1,7 +1,8 @@
|
||||
#!/usr/bin/with-contenv bash
|
||||
|
||||
# make folders
|
||||
mkdir -p /var/run/dbus
|
||||
mkdir -p \
|
||||
/var/run/dbus
|
||||
|
||||
# delete existing pid if found
|
||||
[[ -e /var/run/dbus/pid ]] && \
|
||||
@ -1,7 +1,15 @@
|
||||
#!/usr/bin/with-contenv bash
|
||||
|
||||
# opt out for autoupdates
|
||||
[ "$ADVANCED_DISABLEUPDATES" ] && \
|
||||
# set no update message
|
||||
#######################################################
|
||||
# Update routine will not run, this is either because #
|
||||
# you havent set the VERSION variable or have set #
|
||||
# $ADVANCED_DISABLEUPDATES, for more information, see #
|
||||
# <link not placed yet> #
|
||||
#######################################################
|
||||
|
||||
# test for no version set or opt out for autoupdates
|
||||
[[ "$ADVANCED_DISABLEUPDATES" ]] || && \
|
||||
exit 0
|
||||
|
||||
# set header for no preferences/token message
|
||||
@ -1,13 +1,11 @@
|
||||
#!/usr/bin/with-contenv bash
|
||||
|
||||
if [ ! -d "/config/Library" ]; then
|
||||
mkdir /config/Library
|
||||
chown abc:abc /config/Library
|
||||
fi
|
||||
# check for preferences file and exit out if not found
|
||||
[[ ! -e "/config/Library/Application Support/Plex Media Server/Preferences.xml" ]] && \
|
||||
exit 0
|
||||
|
||||
if [ ! -f "/config/Library/linuxserver-chown.lock" ]; then
|
||||
find /config/Library ! \( -user abc -a -group abc \) -print0 | xargs -0 chown abc:abc
|
||||
touch /config/Library/linuxserver-chown.lock
|
||||
chown abc:abc /config/Library/linuxserver-chown.lock
|
||||
fi
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user