We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 12c4c3f + 6efb8b7 commit 9abd2abCopy full SHA for 9abd2ab
apt.py
@@ -35,7 +35,8 @@ def unattended_upgrade_dry_run():
35
@task(default=True)
36
def packages_with_reboots(*args):
37
"""Find out the packages that require a reboot"""
38
- sudo('cat /var/run/reboot-required.pkgs')
+ package_reboot_file = '/var/run/reboot-required.pkgs'
39
+ sudo('if [ -f {0} ]; then cat {0}; else echo No packages with reboots; fi'.format(package_reboot_file))
40
41
@task
42
def reset_reboot_needed(*args):
0 commit comments