dom0: fix check-updates cron job
This commit is contained in:
		
							parent
							
								
									67722e72bb
								
							
						
					
					
						commit
						6a489c0faf
					
				| @ -13,7 +13,7 @@ echo $$ > $PIDFILE | |||||||
| trap "rm $PIDFILE" EXIT | trap "rm $PIDFILE" EXIT | ||||||
| 
 | 
 | ||||||
| # If no updates available - exit here | # If no updates available - exit here | ||||||
| qvm-dom0-updates --check-only && exit | qubes-dom0-updates --check-only && exit | ||||||
| RETCODE=$? | RETCODE=$? | ||||||
| 
 | 
 | ||||||
| if [ "$RETCODE" -ne 100 ]; then | if [ "$RETCODE" -ne 100 ]; then | ||||||
| @ -32,4 +32,4 @@ zenity --notification --window-icon=$NOTIFY_ICON --text="Qubes dom0 updates avai | |||||||
| zenity --question --title="Qubes Dom0 updates" \ | zenity --question --title="Qubes Dom0 updates" \ | ||||||
|       --text="There are updates for dom0 available, do you want to download them now?" || exit 0 |       --text="There are updates for dom0 available, do you want to download them now?" || exit 0 | ||||||
| 
 | 
 | ||||||
| su -c "DISPLAY=:0 qvm-dom0-update --gui" $LOCAL_USER | su -c "DISPLAY=:0 qubes-dom0-update --gui" $LOCAL_USER | ||||||
|  | |||||||
		Loading…
	
		Reference in New Issue
	
	Block a user
	 Marek Marczykowski
						Marek Marczykowski