aboutsummaryrefslogtreecommitdiff
path: root/tasks/update
diff options
context:
space:
mode:
authorGravatar Jonas Gunz <himself@jonasgunz.de> 2020-06-01 19:54:40 +0200
committerGravatar Jonas Gunz <himself@jonasgunz.de> 2020-06-01 19:54:40 +0200
commitf33ea96125c63e112cbef97de3b8376a38681e40 (patch)
tree89cd72698ab848f11c94404ec469f7285ee314a6 /tasks/update
parentf602514603187dbf7195c16d82c693536c1df3be (diff)
downloadltask-f33ea96125c63e112cbef97de3b8376a38681e40.tar.gz
added libs
Diffstat (limited to 'tasks/update')
-rw-r--r--tasks/update23
1 files changed, 23 insertions, 0 deletions
diff --git a/tasks/update b/tasks/update
new file mode 100644
index 0000000..e392b76
--- /dev/null
+++ b/tasks/update
@@ -0,0 +1,23 @@
+#!/bin/bash
+
+function task_exec() {
+ pkg_update
+ pkg_upgrade
+}
+
+function task_setup() {
+ INCLUDES+=("$INCLUDE_DIR/pkgmanager")
+
+ SSH_USER=server
+ #SSH_IDENTITY_FILE=$ASSET_DIR/id_rsa
+
+ FILES+=()
+
+ TASK_ISSET="yes"
+}
+
+if [ -z $HOSTMODE ]; then
+ task_exec
+else
+ task_setup
+fi