post_install() {
    # Enable SteamOS Manager Service at first installation
    systemctl enable steamos-manager.service
}

post_upgrade() {
  # Only enable the service for 25.5.5-1 version
  # This avoids, that the services are automatically enabled in every upgrade
  if (( $(vercmp $2 25.5.5-1) < 0)); then
    for service in steamos-manager; do
        if ! systemctl is-enabled --quiet $service; then
            echo "Enabling $service..."
            systemctl enable $service
        fi
    done
  fi
}
