2012-05-01 01:14:04 +02:00
|
|
|
[Unit]
|
|
|
|
Description=Qubes check for VM updates and notify dom0
|
|
|
|
ConditionPathExists=/var/run/qubes-service/qubes-update-check
|
2015-11-11 01:19:33 +01:00
|
|
|
After=qubes-qrexec-agent.service
|
2012-05-01 01:14:04 +02:00
|
|
|
|
|
|
|
[Service]
|
|
|
|
Type=oneshot
|
2015-04-25 09:44:28 +02:00
|
|
|
ExecStart=/usr/lib/qubes/qrexec-client-vm dom0 qubes.NotifyUpdates /bin/sh -c 'if [ -e /etc/system-release ]; then yum -q check-update >/dev/null; [ $? -eq 100 ] && echo 1 || echo 0; else apt-get -q update > /dev/null; apt-get -s upgrade | awk "/^Inst/{ print $2 }" | [ $(wc -L) -eq 0 ] && echo 0 || echo 1; fi'
|