summaryrefslogtreecommitdiffstats
path: root/configuration/contrib/tedge_upgrade/upgrade_tedge_0.6.sh
diff options
context:
space:
mode:
Diffstat (limited to 'configuration/contrib/tedge_upgrade/upgrade_tedge_0.6.sh')
-rw-r--r--configuration/contrib/tedge_upgrade/upgrade_tedge_0.6.sh10
1 files changed, 10 insertions, 0 deletions
diff --git a/configuration/contrib/tedge_upgrade/upgrade_tedge_0.6.sh b/configuration/contrib/tedge_upgrade/upgrade_tedge_0.6.sh
new file mode 100644
index 00000000..df5b1ba0
--- /dev/null
+++ b/configuration/contrib/tedge_upgrade/upgrade_tedge_0.6.sh
@@ -0,0 +1,10 @@
+#!/bin/bash
+
+# change the owenership of the below directories/files to `tedge` user,
+# as there is only `tedge` user exists.
+
+sudo chown tedge:tedge /etc/tedge/operations/c8y/c8y_*
+sudo chown tedge:tedge /etc/tedge/.agent
+sudo chown tedge:tedge /var/log/tedge/agent
+sudo chown tedge:tedge /run/lock/tedge_agent.lock
+sudo chown tedge:tedge /run/lock/tedge-mapper-c8y.lock \ No newline at end of file