Skip to content

Commit

Permalink
packaging: fix install path for {loki,promtail}.service
Browse files Browse the repository at this point in the history
  • Loading branch information
ulidtko committed Feb 5, 2024
1 parent b1a0272 commit c210add
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion tools/packaging/loki-postinstall.sh
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ cleanInstall() {
# even if you want your service to run as non root.
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/loki.service
sed -i "s/=+/=/g" /usr/lib/systemd/system/loki.service
fi
printf "\033[32m Reload the service unit from disk\033[0m\n"
systemctl daemon-reload ||:
Expand Down
4 changes: 2 additions & 2 deletions tools/packaging/nfpm.jsonnet
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ local overrides = {
contents+: [
{
src: './tools/packaging/loki.service',
dst: '/etc/systemd/system/loki.service',
dst: '/usr/lib/systemd/system/loki.service',
},
{
src: './cmd/loki/loki-local-config.yaml',
Expand All @@ -42,7 +42,7 @@ local overrides = {
contents+: [
{
src: './tools/packaging/promtail.service',
dst: '/etc/systemd/system/promtail.service',
dst: '/usr/lib/systemd/system/promtail.service',
},
{
src: './tools/packaging/promtail-minimal-config.yaml',
Expand Down
2 changes: 1 addition & 1 deletion tools/packaging/promtail-postinstall.sh
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ cleanInstall() {
# even if you want your service to run as non root.
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/promtail.service
sed -i "s/=+/=/g" /usr/lib/systemd/system/promtail.service
fi
printf "\033[32m Reload the service unit from disk\033[0m\n"
systemctl daemon-reload ||:
Expand Down

0 comments on commit c210add

Please sign in to comment.