Skip to content

Commit e5a2b34

Browse files
committed
control: Fix autoupdate script
1 parent 7166755 commit e5a2b34

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

oasis_control/config/systemd/autoupdate.service

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,15 @@ After=network-online.target packagekit.service
44

55
[Service]
66
Type=oneshot
7+
8+
# If PackageKit is wedged, this clears it before we try updating.
9+
ExecStartPre=/usr/bin/systemctl restart packagekit.service
10+
ExecStartPre=/usr/bin/pkcon refresh force
11+
712
ExecStart=/usr/bin/pkcon update -y
813

914
# PackageKit and pkcon treat "no updates" as a "special exit code" (5)
1015
SuccessExitStatus=5
16+
17+
# Don't hang forever
18+
TimeoutStartSec=30min

0 commit comments

Comments
 (0)