Merge pull request #1 from double16/fixes
Fix shell script syntax errors and install bus
This commit is contained in:
commit
a21fd53884
3 changed files with 5 additions and 5 deletions
|
|
@ -12,7 +12,7 @@ CMD ["/sbin/my_init"]
|
||||||
# Install Plex
|
# Install Plex
|
||||||
RUN apt-get -q update && \
|
RUN apt-get -q update && \
|
||||||
VERSION=$(curl https://raw.githubusercontent.com/linuxserver/misc-files/master/plex-version/public) && \
|
VERSION=$(curl https://raw.githubusercontent.com/linuxserver/misc-files/master/plex-version/public) && \
|
||||||
apt-get install -qy gdebi-core wget && \
|
apt-get install -qy dbus gdebi-core wget && \
|
||||||
wget -P /tmp "http://downloads.plexapp.com/plex-media-server/$VERSION/plexmediaserver_${VERSION}_amd64.deb" && \
|
wget -P /tmp "http://downloads.plexapp.com/plex-media-server/$VERSION/plexmediaserver_${VERSION}_amd64.deb" && \
|
||||||
gdebi -n /tmp/plexmediaserver_${VERSION}_amd64.deb && \
|
gdebi -n /tmp/plexmediaserver_${VERSION}_amd64.deb && \
|
||||||
rm -f /tmp/plexmediaserver_${VERSION}_amd64.deb && \
|
rm -f /tmp/plexmediaserver_${VERSION}_amd64.deb && \
|
||||||
|
|
|
||||||
|
|
@ -1,7 +1,7 @@
|
||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
export DEBIAN_FRONTEND=noninteractive
|
export DEBIAN_FRONTEND=noninteractive
|
||||||
INSTALLED=`dpkg-query -W -f='${Version}' plexmediaserver`
|
INSTALLED=`dpkg-query -W -f='${Version}' plexmediaserver`
|
||||||
if [ "$PLEXPASS" -eq "1" ]; then
|
if [ "$PLEXPASS" == "1" ]; then
|
||||||
VERSION=$(curl https://raw.githubusercontent.com/linuxserver/misc-files/master/plex-version/plexpass)
|
VERSION=$(curl https://raw.githubusercontent.com/linuxserver/misc-files/master/plex-version/plexpass)
|
||||||
else
|
else
|
||||||
VERSION=$(curl https://raw.githubusercontent.com/linuxserver/misc-files/master/plex-version/public)
|
VERSION=$(curl https://raw.githubusercontent.com/linuxserver/misc-files/master/plex-version/public)
|
||||||
|
|
|
||||||
|
|
@ -1,7 +1,7 @@
|
||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
if [ ! "$(id -u abc)" -eq "$PUID" ]; then usermod -u "$PUID" abc ; fi
|
if [ "$(id -u abc)" != "$PUID" ]; then usermod -u "$PUID" abc ; fi
|
||||||
if [ ! "$(id -g abc)" -eq "$PGID" ]; then groupmod -o -g "$PGID" abc ; fi
|
if [ "$(id -g abc)" != "$PGID" ]; then groupmod -o -g "$PGID" abc ; fi
|
||||||
|
|
||||||
echo "
|
echo "
|
||||||
-----------------------------------
|
-----------------------------------
|
||||||
|
|
@ -12,4 +12,4 @@ Plex gid: $(id -g abc)
|
||||||
-----------------------------------
|
-----------------------------------
|
||||||
Plex will now continue to boot.
|
Plex will now continue to boot.
|
||||||
"
|
"
|
||||||
sleep 2
|
sleep 2
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue