fix(node): clarify wireless enrollment and restore active K1 after upgrade
This commit is contained in:
@@ -28,7 +28,10 @@ if [ "$1" = install ] || [ "$1" = upgrade ]; then
|
||||
esac
|
||||
# End the admitted idle worker before dpkg replaces its Python modules.
|
||||
# New UI commands now fail unavailable instead of racing the package copy.
|
||||
if [ -f /usr/lib/systemd/system/mission-core-k1.service ]; then
|
||||
if systemctl is-active --quiet mission-core-k1.service; then
|
||||
# Preserve an optional worker's prior running state across a Node-only
|
||||
# update. /run is root-owned; the plugin still owns initial activation.
|
||||
(umask 077; : > /run/mission-core-node-k1-upgrade-active)
|
||||
systemctl stop mission-core-k1.service
|
||||
fi
|
||||
fi
|
||||
|
||||
Reference in New Issue
Block a user