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

refactor: exit after installation failure #95

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

xxxxxliil
Copy link
Contributor

No description provided.

@xxxxxliil
Copy link
Contributor Author

@Magicalex

echo "[INFO] End of flarum installation"
else
echo "[ERROR] The flarum installation fails, Now exit!"
exit 75
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why you use code 75?
I think this change is unnecessary.

Copy link
Contributor Author

@xxxxxliil xxxxxliil Jun 10, 2021

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why you use code 75?
I think this change is unnecessary.

defined in /usr/include/sysexits.h

 *      EX_TEMPFAIL -- temporary failure, indicating something that
 *              is not really an error.  In sendmail, this means
 *              that a mailer (e.g.) could not create a connection,
 *              and the request should be reattempted later.
...
#define EX_TEMPFAIL     75      /* temp failure; user is invited to retry */

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants