better test for package installed or not.
This commit is contained in:
parent
fd5f6217eb
commit
7fd2f7f574
1 changed files with 10 additions and 9 deletions
|
|
@ -5,9 +5,10 @@
|
|||
cp /defaults/plexmediaserver /etc/default/plexmediaserver
|
||||
|
||||
# test if plex is installed and try re-pulling latest if not
|
||||
if dpkg -s plexmediaserver > /dev/null 2>&1 ; then
|
||||
if (dpkg --get-selections plexmediaserver | grep -wq "install"); then
|
||||
:
|
||||
else echo "for some reason plex doesn't appear to be installed, pulling a new copy and exiting out of update script"
|
||||
else
|
||||
echo "for some reason plex doesn't appear to be installed, pulling a new copy and exiting out of update script"
|
||||
curl -o /tmp/plexmediaserver.deb -L \
|
||||
"${PLEX_INSTALL}" && \
|
||||
dpkg -i --force-confold /tmp/plexmediaserver.deb
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue