forked from davidferguson/pibakery-blocks
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
New block: updateupgrade, fixes davidferguson#15
The updateupgrade block updates the package lists, and then upgrades all installed packages on the Raspberry Pi.
- Loading branch information
1 parent
d188f11
commit b3cf844
Showing
2 changed files
with
16 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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." | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |