File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 6767
6868last=130
6969if [[ "$VERSION" == "" ]]; then
70- echo "ERROR: No version found, running installed version $INSTALLED"
70+ echo "VERSION variable not set, current installed version $INSTALLED"
7171elif [[ "$VERSION" != "$INSTALLED" ]]; then
7272 echo "Upgrading from version: $INSTALLED to version: $VERSION"
7373 while [[ $last -ne "0" ]]; do
7474 rm -f /tmp/plexmediaserver_*.deb
7575 wget -P /tmp "https://downloads.plex.tv/plex-media-server/$VERSION/plexmediaserver_${VERSION}_amd64.deb"
7676 last=$?
7777 done
78+ [[ ! -e /tmp/plexmediaserver_"${VERSION}"_amd64.deb ]] && exit 0
7879 apt-get remove --purge -y plexmediaserver
7980 dpkg -i /tmp/plexmediaserver_"${VERSION}"_amd64.deb
8081else
Original file line number Diff line number Diff line change @@ -6,7 +6,8 @@ if [ ! -d "/config/Library" ]; then
66fi
77
88if [ ! -f "/config/Library/linuxserver-chown.lock" ]; then
9- find /config/Library ! \( -user abc -a -group root \) -print0 | xargs -0 chown abc:root
9+ find /config/Library ! \( -user abc -a -group abc \) -print0 | xargs -0 chown abc:abc
1010 touch /config/Library/linuxserver-chown.lock
11+ chown abc:abc /config/Library/linuxserver-chown.lock
1112fi
1213
You can’t perform that action at this time.
0 commit comments