Merge pull request #457 from unpoller/fix-postinstall-script

fixes post install script
This commit is contained in:
Cody Lee 2022-12-05 22:22:09 -05:00 committed by GitHub
commit b78c778cc7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -49,7 +49,7 @@ cleanInstall() {
else
# rhel/centos7 cannot use ExecStartPre=+ to specify the pre start should be run as root
# even if you want your service to run as non root.
if [] "${systemd_version}" -lt 231 ]; then
if [ "${systemd_version}" -lt 231 ]; then
printf "\033[31m systemd version %s is less then 231, fixing the service file \033[0m\n" "${systemd_version}"
sed -i "s/=+/=/g" /etc/systemd/system/unpoller.service
fi