Skip to content

Commit

Permalink
fix(packaging): start tedge-inventory.timer on installation
Browse files Browse the repository at this point in the history
  • Loading branch information
reubenmiller committed Dec 9, 2024
1 parent a8da9de commit 6b1d279
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/packaging/postinstall
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,11 @@ cleanInstall() {
systemctl preset tedge-inventory.timer ||:
printf "\033[32m Set the enabled flag for the service unit\033[0m\n"
systemctl enable tedge-inventory.timer ||:

if [ -d /run/systemd/system ]; then
printf "\033[32m Start the service timer\033[0m\n"
systemctl start tedge-inventory.timer ||:
fi
fi
}

Expand Down

0 comments on commit 6b1d279

Please sign in to comment.