Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Additional install.sh restart changes #2771

Merged
merged 12 commits into from
Jun 12, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions allsky.sh
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,12 @@ source "${ALLSKY_CONFIG}/config.sh" || exit ${ALLSKY_ERROR_STOP}
#shellcheck disable=SC2086 source-path=scripts
source "${ALLSKY_SCRIPTS}/installUpgradeFunctions.sh" || exit ${ALLSKY_ERROR_STOP}

# Make sure the settings have been configured after an installation or upgrade.
LAST_CHANGED=$(settings ".lastChanged")
if [[ ${LAST_CHANGED} == "" || ${LAST_CHANGED} == "null" ]]; then
echo "*** ===== Allsky needs to be configured before it can be used. See the WebUI."
doExit "${EXIT_ERROR_STOP}" "Error" "ConfigurationNeeded"
fi

SEE_LOG_MSG="See ${ALLSKY_LOG}"
ARGS_FILE="${ALLSKY_TMP}/capture_args.txt"
Expand Down
2 changes: 1 addition & 1 deletion html/includes/functions.php
Original file line number Diff line number Diff line change
Expand Up @@ -186,7 +186,7 @@ function check_if_configured($page, $calledFrom) {
if ($calledFrom === "main" && $page === "configuration")
return;

if ($lastChanged === null) {
if ($lastChanged === null || $lastChanged === "") {
// The settings aren't configured - probably right after an installation.
if ($page === "configuration")
$m = "";
Expand Down
Loading