Skip to content

Commit

Permalink
Update install.sh: FIX: had wrong exit code name
Browse files Browse the repository at this point in the history
  • Loading branch information
EricClaeys authored Nov 15, 2023
1 parent c98408f commit b2bcb8d
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,11 @@
ME="$( basename "${BASH_ARGV0}" )"

#shellcheck source-path=.
source "${ALLSKY_HOME}/variables.sh" || exit "${ALLSKY_ERROR_STOP}"
source "${ALLSKY_HOME}/variables.sh" || exit "${EXIT_ERROR_STOP}"
#shellcheck source-path=scripts
source "${ALLSKY_SCRIPTS}/functions.sh" || exit "${ALLSKY_ERROR_STOP}"
source "${ALLSKY_SCRIPTS}/functions.sh" || exit "${EXIT_ERROR_STOP}"
#shellcheck source-path=scripts
source "${ALLSKY_SCRIPTS}/installUpgradeFunctions.sh" || exit "${ALLSKY_ERROR_STOP}"
source "${ALLSKY_SCRIPTS}/installUpgradeFunctions.sh" || exit "${EXIT_ERROR_STOP}"

if [[ ${EUID} -eq 0 ]]; then
display_msg error "This script must NOT be run as root, do NOT use 'sudo'."
Expand All @@ -19,9 +19,9 @@ fi
# This script assumes the user already did the "git clone" into ${ALLSKY_HOME}.

# Some versions of Linux default to 750 so web server can't read it
chmod 755 "${ALLSKY_HOME}" || exit "${ALLSKY_ERROR_STOP}"
chmod 755 "${ALLSKY_HOME}" || exit "${EXIT_ERROR_STOP}"

cd "${ALLSKY_HOME}" || exit "${ALLSKY_ERROR_STOP}"
cd "${ALLSKY_HOME}" || exit "${EXIT_ERROR_STOP}"

TITLE="Allsky Installer - ${ALLSKY_VERSION}"
FINAL_SUDOERS_FILE="/etc/sudoers.d/allsky"
Expand Down

0 comments on commit b2bcb8d

Please sign in to comment.