Skip to content

Commit cd247dc

Browse files
author
Sam J Sharpe
committed
Add tasks for dealing with apt-reboots
1 parent 7f85d0d commit cd247dc

File tree

2 files changed

+1
-10
lines changed

2 files changed

+1
-10
lines changed

fabfile.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@
1010
from fabric.task_utils import crawl
1111

1212
# Our command submodules
13+
import apt
1314
import cache
1415
import licensify
1516
import mongo

vm.py

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -15,16 +15,6 @@ def disk():
1515
"""Show disk usage"""
1616
run('df -kh')
1717

18-
@task
19-
def updates():
20-
"""Show package counts needing updates"""
21-
run("cat /var/lib/update-notifier/updates-available")
22-
23-
@task
24-
def upgrade():
25-
"""Upgrade packages with apt-get"""
26-
sudo("apt-get update; apt-get upgrade -y")
27-
2818
@task
2919
def stopped_jobs():
3020
"""Find stopped govuk application jobs"""

0 commit comments

Comments
 (0)