chore: fix env file check (#212)

Signed-off-by: Patrick Gehrsitz <58853838+mryel00@users.noreply.github.com>
This commit is contained in:
Patrick Gehrsitz 2023-11-22 20:51:20 +01:00 committed by GitHub
parent 1a0af83c8b
commit 178b8ad24f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -222,7 +222,7 @@ install_env_file() {
sudo -u "${BASE_USER}" cp -f "${env_file}" "${env_target}"
sed -i "s|%CONFPATH%|${CROWSNEST_CONFIG_PATH}|" "${env_target}"
[[ -f "${env_target}" ]] &&
grep -q "${BASE_USER}" "${env_target}" || return 1
grep -q "${CROWSNEST_CONFIG_PATH}" "${env_target}" || return 1
}
install_logrotate_conf() {