Skip to content

Commit

Permalink
Merge pull request #17 from thin-edge/fix-start-timer-on-install
Browse files Browse the repository at this point in the history
fix(packaging): start tedge-inventory.timer on installation
  • Loading branch information
reubenmiller authored Dec 9, 2024
2 parents 8f9b79a + 6b1d279 commit 947fd0d
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 947fd0d

Please sign in to comment.