Skip to content

Commit

Permalink
Fix mithril signer script flag checks
Browse files Browse the repository at this point in the history
  • Loading branch information
Scitz0 committed Feb 17, 2024
1 parent bd04f9a commit 0597db2
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions scripts/cnode-helper-scripts/mithril-signer.sh
Original file line number Diff line number Diff line change
Expand Up @@ -187,14 +187,14 @@ esac
# Set defaults and do basic sanity checks
set_defaults
#Deploy systemd if -d argument was specified
if [[ "${DEPLOY_SYSTEMD}" == "Y" ]]; then
deploy_systemd && exit 0
if [[ "${UPDATE_ENVIRONMENT}" == "Y" && "${DEPLOY_SYSTEMD}" == "Y" ]]; then
generate_environment_file && echo "Environment file updated successfully" && deploy_systemd && echo "Mithril signer service successfully deployed" && exit 0
exit 2
elif [[ "${UPDATE_ENVIRONMENT}" == "Y" ]]; then
generate_environment_file && echo "Environment file updated successfully!!" && exit 0
generate_environment_file && echo "Environment file updated successfully" && exit 0
exit 2
elif [[ "${UPDATE_ENVIRONMENT}" == "Y" ]] && [[ "${DEPLOY_SYSTEMD}" == "Y" ]]; then
generate_environment_file && deploy_systemd && exit 0
elif [[ "${DEPLOY_SYSTEMD}" == "Y" ]]; then
deploy_systemd && echo "Mithril signer service successfully deployed" && exit 0
exit 2
fi

Expand Down

0 comments on commit 0597db2

Please sign in to comment.