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

Add OpenWRT support for binary quick script installation #445

Merged
merged 1 commit into from
Jan 18, 2025

Conversation

Nicols0Mart
Copy link
Contributor

Modified the install-agent.sh script for binary installation to support OpenWRT.
I more or less tried to match your coding style, checking the OS type like you did with Alpine.

To add the service, instead of systemd a procd init script is used. The service can be enabled, started, stoped, etc. by using
service beszel-agent ....
An update command is also included to update and restart the service. For automatic updates, I opted to use a crontab job that uses service beszel-agent update once a day.

To get the OS type variable, sed is used instead of tr, since most busybox systems have implmentations of tr that do not support classes, as mentioned in this issue. This implementation is not the pretiest, since all 27 alphabet characters have to be included, but the upside is that this should support almost any linux system.

@henrygd henrygd merged commit 4789f48 into henrygd:main Jan 18, 2025
@henrygd
Copy link
Owner

henrygd commented Jan 18, 2025

Looks good, thank you! 👍

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.

2 participants