File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 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 ]] && \
Original file line number Diff line number Diff line change 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 number Diff line number Diff line change 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
87if [ ! -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
1211fi
13-
You can’t perform that action at this time.
0 commit comments