Skip to content

Commit e92f5b1

Browse files
committed
add message box outline for no updates set
1 parent 1ed5257 commit e92f5b1

3 files changed

Lines changed: 15 additions & 8 deletions

File tree

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
11
#!/usr/bin/with-contenv bash
22

33
# make folders
4-
mkdir -p /var/run/dbus
4+
mkdir -p \
5+
/var/run/dbus
56

67
# delete existing pid if found
78
[[ -e /var/run/dbus/pid ]] && \
Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,15 @@
11
#!/usr/bin/with-contenv bash
22

3-
# opt out for autoupdates
4-
[ "$ADVANCED_DISABLEUPDATES" ] && \
3+
# set no update message
4+
#######################################################
5+
# Update routine will not run, this is either because #
6+
# you havent set the VERSION variable or have set #
7+
# $ADVANCED_DISABLEUPDATES, for more information, see #
8+
# <link not placed yet> #
9+
#######################################################
10+
11+
# test for no version set or opt out for autoupdates
12+
[[ "$ADVANCED_DISABLEUPDATES" ]] || && \
513
exit 0
614

715
# set header for no preferences/token message
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,11 @@
11
#!/usr/bin/with-contenv bash
22

3-
if [ ! -d "/config/Library" ]; then
4-
mkdir /config/Library
5-
chown abc:abc /config/Library
6-
fi
3+
# check for preferences file and exit out if not found
4+
[[ ! -e "/config/Library/Application Support/Plex Media Server/Preferences.xml" ]] && \
5+
exit 0
76

87
if [ ! -f "/config/Library/linuxserver-chown.lock" ]; then
98
find /config/Library ! \( -user abc -a -group abc \) -print0 | xargs -0 chown abc:abc
109
touch /config/Library/linuxserver-chown.lock
1110
chown abc:abc /config/Library/linuxserver-chown.lock
1211
fi
13-

0 commit comments

Comments
 (0)