File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -172,7 +172,7 @@ Install: `ansible-galaxy install -r requirements.yml`
172172
173173| Variable | Default | Description |
174174|----------|---------|-------------|
175- | `unifi_on_boot_version` | `"1.0.6 "` | Version to install from GitHub releases (update to latest) |
175+ | `unifi_on_boot_version` | `"1.0.7 "` | Version to install from GitHub releases (update to latest) |
176176| `unifi_on_boot_remove_conflicts` | `true` | Remove `udm-boot`/`udm-boot-2x` if present |
177177| `unifi_on_boot_scripts` | `[]` | List of scripts to deploy (see example above) |
178178| `unifi_on_boot_run_after_deploy` | `false` | Run on-boot scripts immediately after deploy |
Original file line number Diff line number Diff line change 22# defaults for unifi-on-boot ansible role
33
44# Version of unifi-on-boot to install
5- unifi_on_boot_version : " 1.0.6 "
5+ unifi_on_boot_version : " 1.0.7 "
66
77# GitHub release download URL
88unifi_on_boot_github_repo : " unredacted/unifi-on-boot"
Original file line number Diff line number Diff line change 11Package: unifi-on-boot
2- Version: 1.0.6
2+ Version: 1.0.7
33Architecture: all
44Maintainer: Unredacted <contact@unredacted.org>
55Depends: bash, systemd
Original file line number Diff line number Diff line change 4040log " Restoring from: ${DEB} "
4141
4242# Install the package
43- # Note: postinst handles systemctl enable + daemon-reload.
44- # Do NOT start the service here — it would run all on_boot.d scripts
45- # (including Tailscale) which can disrupt network connectivity.
46- # The main service starts later in the same boot via WantedBy=multi-user.target.
43+ # postinst handles systemctl enable + daemon-reload.
44+ # We also need to start the main service explicitly because it gets enabled
45+ # mid-boot after multi-user.target has already evaluated its dependencies.
46+ # This is safe: install.sh only runs from a systemd service at boot time,
47+ # not during interactive SSH sessions, so Tailscale restarts won't disrupt anything.
4748if dpkg -i " ${DEB} " ; then
48- log " Package restored successfully (service will start later in boot)"
49+ log " Package restored successfully"
50+ # Start the main service so on_boot.d scripts run on this boot
51+ if systemctl start " ${PACKAGE_NAME} .service" 2> /dev/null; then
52+ log " Service started — on_boot.d scripts executed"
53+ else
54+ log " WARNING: Could not start service (scripts will run on next boot)"
55+ fi
4956else
5057 log " ERROR: Failed to restore package"
5158 exit 1
Original file line number Diff line number Diff line change 11[Unit]
22Description =Restore unifi-on-boot after firmware upgrade
33After =local-fs.target
4- Before =network-online.target
54RequiresMountsFor =/data
65
76[Service]
You can’t perform that action at this time.
0 commit comments