polkit service work
This commit is contained in:
@@ -38,7 +38,7 @@ with lib;
|
|||||||
UNIT="update-system.service"
|
UNIT="update-system.service"
|
||||||
|
|
||||||
# Start following logs in the background
|
# Start following logs in the background
|
||||||
journalctl -fu "$UNIT" --output=cat &
|
journalctl -fu "$UNIT" -n 0 --output=cat &
|
||||||
JPID=$!
|
JPID=$!
|
||||||
|
|
||||||
# Start the service and wait for it to finish
|
# Start the service and wait for it to finish
|
||||||
@@ -48,6 +48,8 @@ with lib;
|
|||||||
STATUS=$?
|
STATUS=$?
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
sleep 2
|
||||||
|
|
||||||
# Kill the log follower
|
# Kill the log follower
|
||||||
kill "$JPID" 2>/dev/null || true
|
kill "$JPID" 2>/dev/null || true
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user