Skip to content

Commit d8e00e7

Browse files
committed
tweak the printf in update
1 parent 5db417d commit d8e00e7

1 file changed

Lines changed: 5 additions & 8 deletions

File tree

root/etc/cont-init.d/50-plex-update

Lines changed: 5 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -9,18 +9,17 @@
99
rm /tmp/no-version.nfo
1010
NOVERSION_SET='/tmp/no-version.nfo'
1111
cat > "${NOVERSION_SET}" <<-EOFVERSION
12-
13-
1412
#######################################################
1513
# Update routine will not run because you havent set #
16-
# the VERSION variable, for more information checkout #
14+
# the VERSION variable or you opted out of updates. #
15+
# For more information checkout :- #
1716
#  https://github.com/linuxserver/docker-plex #
1817
#######################################################
1918
EOFVERSION
2019

2120
# test for no version set or opt out for autoupdates
2221
if [[ -z "$VERSION" ]] || [[ "$VERSION" == "0" ]] || [[ ! -z "$ADVANCED_DISABLEUPDATES" ]]; then
23-
printf "%s\n\n\n" "$(</tmp/no-version.nfo)"
22+
printf "\n\n\n%s\n\n\n" "$(</tmp/no-version.nfo)"
2423
exit 0
2524
fi
2625

@@ -29,8 +28,6 @@ fi
2928
rm /tmp/no-token.nfo
3029
NOTOKEN_SET='/tmp/no-token.nfo'
3130
cat > "${NOTOKEN_SET}" <<-EOFTOKEN
32-
33-
3431
#####################################################
3532
# Login via the webui at http://<ip>:32400/web #
3633
# and restart the docker, because there was no #
@@ -42,7 +39,7 @@ cat >> "${NOTOKEN_SET}" <<-EOFTOKEN
4239
# preference file found, possibly first startup. #
4340
#####################################################
4441
EOFTOKEN
45-
printf "%s\n\n\n" "$(</tmp/no-token.nfo)"
42+
printf "\n\n\n%s\n\n\n" "$(</tmp/no-token.nfo)"
4643
exit 0
4744
fi
4845

@@ -57,7 +54,7 @@ cat >> "${NOTOKEN_SET}" <<-EOFTOKEN
5754
# plex token found in the preference file #
5855
#####################################################
5956
EOFTOKEN
60-
printf "%s\n\n\n" "$(</tmp/no-token.nfo)"
57+
printf "\n\n\n%s\n\n\n" "$(</tmp/no-token.nfo)"
6158
exit 0
6259
fi
6360

0 commit comments

Comments
 (0)