aboutsummaryrefslogtreecommitdiff
path: root/tasks/update
diff options
context:
space:
mode:
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