mirror of
https://github.com/linuxserver/docker-plex.git
synced 2026-01-27 18:31:49 +08:00
Fix shell script syntax errors
This commit is contained in:
parent
c49b39727d
commit
8eed8216b4
@ -1,7 +1,7 @@
|
||||
#!/bin/bash
|
||||
export DEBIAN_FRONTEND=noninteractive
|
||||
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)
|
||||
else
|
||||
VERSION=$(curl https://raw.githubusercontent.com/linuxserver/misc-files/master/plex-version/public)
|
||||
|
||||
@ -1,7 +1,7 @@
|
||||
#!/bin/bash
|
||||
|
||||
if [ ! "$(id -u abc)" -eq "$PUID" ]; then usermod -u "$PUID" abc ; fi
|
||||
if [ ! "$(id -g abc)" -eq "$PGID" ]; then groupmod -o -g "$PGID" abc ; fi
|
||||
if [ "$(id -u abc)" != "$PUID" ]; then usermod -u "$PUID" abc ; fi
|
||||
if [ "$(id -g abc)" != "$PGID" ]; then groupmod -o -g "$PGID" abc ; fi
|
||||
|
||||
echo "
|
||||
-----------------------------------
|
||||
@ -12,4 +12,4 @@ Plex gid: $(id -g abc)
|
||||
-----------------------------------
|
||||
Plex will now continue to boot.
|
||||
"
|
||||
sleep 2
|
||||
sleep 2
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user