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

unifi_ssl_import.sh : remove dependency on Ubuntu's service script #44

Open
VMFnet opened this issue May 2, 2020 · 0 comments
Open

Comments

@VMFnet
Copy link

VMFnet commented May 2, 2020

unifi_ssl_import.sh depends on Ubuntu's service script, which is not available on Debian :

unifi_ssl_import.sh: line 102: service: command not found

Using the standard systemd command instead of service solves the issue.

To make unifi_ssl_import.sh work with vanilla Debian, I had to make the following changes :

Line 102 : /bin/systemctl stop "${UNIFI_SERVICE}"

Line 163 : /bin/systemctl start "${UNIFI_SERVICE}"

A better option would certainly be wrapping these lines in a variable depending on the operating system and returning the correct systemd/service command.

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

No branches or pull requests

1 participant