Skip to content

Commit

Permalink
New block: updateupgrade, fixes davidferguson#15
Browse files Browse the repository at this point in the history
The updateupgrade block updates the package lists, and then upgrades all installed packages on the Raspberry Pi.
  • Loading branch information
DarthToker authored and davidferguson committed Sep 18, 2016
1 parent d188f11 commit b3cf844
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 0 deletions.
12 changes: 12 additions & 0 deletions updateupgrade/updateupgrade.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
{
"name": "packageupgrade",
"text": "Upgrade all installed packages\\nRequires internet connection.",
"script": "updateupgrade.sh",
"args": [],
"network": true,
"continue": true,
"type": "software",
"category":"software",
"shortDescription":"Upgrade all installed packages",
"longDescription":"This block is exactly the same as running sudo apt-get update and sudo apt-get -y upgrade, which upgrades all the packages you have installed on your Raspberry Pi. An internet connection will be required for this to work."
}
4 changes: 4 additions & 0 deletions updateupgrade/updateupgrade.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
#!/bin/bash

apt-get update
DEBIAN_FRONTEND=noninteractive apt-get -y upgrade

0 comments on commit b3cf844

Please sign in to comment.