tweak the printf in update
This commit is contained in:
parent
5db417d56e
commit
d8e00e7deb
1 changed files with 5 additions and 8 deletions
|
|
@ -9,18 +9,17 @@
|
||||||
rm /tmp/no-version.nfo
|
rm /tmp/no-version.nfo
|
||||||
NOVERSION_SET='/tmp/no-version.nfo'
|
NOVERSION_SET='/tmp/no-version.nfo'
|
||||||
cat > "${NOVERSION_SET}" <<-EOFVERSION
|
cat > "${NOVERSION_SET}" <<-EOFVERSION
|
||||||
|
|
||||||
|
|
||||||
#######################################################
|
#######################################################
|
||||||
# Update routine will not run because you havent set #
|
# Update routine will not run because you havent set #
|
||||||
# the VERSION variable, for more information checkout #
|
# the VERSION variable or you opted out of updates. #
|
||||||
|
# For more information checkout :- #
|
||||||
# https://github.com/linuxserver/docker-plex #
|
# https://github.com/linuxserver/docker-plex #
|
||||||
#######################################################
|
#######################################################
|
||||||
EOFVERSION
|
EOFVERSION
|
||||||
|
|
||||||
# test for no version set or opt out for autoupdates
|
# test for no version set or opt out for autoupdates
|
||||||
if [[ -z "$VERSION" ]] || [[ "$VERSION" == "0" ]] || [[ ! -z "$ADVANCED_DISABLEUPDATES" ]]; then
|
if [[ -z "$VERSION" ]] || [[ "$VERSION" == "0" ]] || [[ ! -z "$ADVANCED_DISABLEUPDATES" ]]; then
|
||||||
printf "%s\n\n\n" "$(</tmp/no-version.nfo)"
|
printf "\n\n\n%s\n\n\n" "$(</tmp/no-version.nfo)"
|
||||||
exit 0
|
exit 0
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|
@ -29,8 +28,6 @@ fi
|
||||||
rm /tmp/no-token.nfo
|
rm /tmp/no-token.nfo
|
||||||
NOTOKEN_SET='/tmp/no-token.nfo'
|
NOTOKEN_SET='/tmp/no-token.nfo'
|
||||||
cat > "${NOTOKEN_SET}" <<-EOFTOKEN
|
cat > "${NOTOKEN_SET}" <<-EOFTOKEN
|
||||||
|
|
||||||
|
|
||||||
#####################################################
|
#####################################################
|
||||||
# Login via the webui at http://<ip>:32400/web #
|
# Login via the webui at http://<ip>:32400/web #
|
||||||
# and restart the docker, because there was no #
|
# and restart the docker, because there was no #
|
||||||
|
|
@ -42,7 +39,7 @@ cat >> "${NOTOKEN_SET}" <<-EOFTOKEN
|
||||||
# preference file found, possibly first startup. #
|
# preference file found, possibly first startup. #
|
||||||
#####################################################
|
#####################################################
|
||||||
EOFTOKEN
|
EOFTOKEN
|
||||||
printf "%s\n\n\n" "$(</tmp/no-token.nfo)"
|
printf "\n\n\n%s\n\n\n" "$(</tmp/no-token.nfo)"
|
||||||
exit 0
|
exit 0
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|
@ -57,7 +54,7 @@ cat >> "${NOTOKEN_SET}" <<-EOFTOKEN
|
||||||
# plex token found in the preference file #
|
# plex token found in the preference file #
|
||||||
#####################################################
|
#####################################################
|
||||||
EOFTOKEN
|
EOFTOKEN
|
||||||
printf "%s\n\n\n" "$(</tmp/no-token.nfo)"
|
printf "\n\n\n%s\n\n\n" "$(</tmp/no-token.nfo)"
|
||||||
exit 0
|
exit 0
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue