Created the update.js app
This commit is contained in:
parent
6ba86ba19f
commit
70ad6363e3
21
server/handler/apps/update.js
Normal file
21
server/handler/apps/update.js
Normal file
@ -0,0 +1,21 @@
|
|||||||
|
module.exports = {
|
||||||
|
variables: {},
|
||||||
|
steps: [
|
||||||
|
{
|
||||||
|
description: "Zugriff prüfen",
|
||||||
|
command: "if [ $EUID -ne 0 ]; then exit 1; fi"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
description: "Paketlisten aktualisiert",
|
||||||
|
command: "apt-get update"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
description: "Pakete aktualisiert",
|
||||||
|
command: "apt-get upgrade -y"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
description: "Pakete bereinigt",
|
||||||
|
command: "apt-get autoremove -y"
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
Reference in New Issue
Block a user