Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 6 additions & 2 deletions build/agent/PKGBUILD
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,9 @@ package__ubuntu_noble() {
postinst__apt() {
if [ -d /run/systemd/system ]; then
systemctl daemon-reload &>/dev/null || :
if [ "$1" = "configure" ] && [ -z "$2" ]; then
# Enable on both fresh install and upgrade so the [Install] WantedBy=
# symlink is always reconciled against the current unit (self-healing).
if [ "$1" = "configure" ]; then
systemctl enable service-discover.service &>/dev/null || :
fi
fi
Expand All @@ -91,7 +93,9 @@ postinst__apt() {
postinst__yum() {
if [ -d /run/systemd/system ]; then
systemctl daemon-reload &>/dev/null || :
if [ $1 -eq 1 ]; then
# Enable on both fresh install ($1 -eq 1) and upgrade ($1 -eq 2) so the
# [Install] WantedBy= symlink is always reconciled (self-healing).
if [ $1 -ge 1 ]; then
systemctl enable service-discover.service &>/dev/null || :
fi
fi
Expand Down
8 changes: 6 additions & 2 deletions build/server/PKGBUILD
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,9 @@ package__ubuntu_noble() {
postinst__apt() {
if [ -d /run/systemd/system ]; then
systemctl daemon-reload &>/dev/null || :
if [ "$1" = "configure" ] && [ -z "$2" ]; then
# Enable on both fresh install and upgrade so the [Install] WantedBy=
# symlink is always reconciled against the current unit (self-healing).
if [ "$1" = "configure" ]; then
systemctl enable service-discover.service &>/dev/null || :
fi
fi
Expand All @@ -90,7 +92,9 @@ postinst__apt() {
postinst__yum() {
if [ -d /run/systemd/system ]; then
systemctl daemon-reload &>/dev/null || :
if [ $1 -eq 1 ]; then
# Enable on both fresh install ($1 -eq 1) and upgrade ($1 -eq 2) so the
# [Install] WantedBy= symlink is always reconciled (self-healing).
if [ $1 -ge 1 ]; then
systemctl enable service-discover.service &>/dev/null || :
fi
fi
Expand Down
2 changes: 1 addition & 1 deletion release.config.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
* @type {import('semantic-release').GlobalConfig}
*/
export default {
branches: ['devel'],
branches: ['main'],
tagFormat: "${version}",
plugins: [
[
Expand Down
Loading