summaryrefslogtreecommitdiffstats
path: root/configuration/debian/tedge_mapper
diff options
context:
space:
mode:
authorPradeepKiruvale <pradeepkumar.kj@softwareag.com>2022-03-24 13:35:38 +0530
committerGitHub <noreply@github.com>2022-03-24 13:35:38 +0530
commit59142ef60484ddc7b103c841d34b308b9444f316 (patch)
treed7b8f89179d2244a1e116081b11a28e7c3a141fa /configuration/debian/tedge_mapper
parentd9ca6aedfad3de7931964200f26e40fdd577b48a (diff)
[#761] tedge init (#993)
* tedge init #Closes 761 * add file/directory creation errors * add the clear session to az and collectd mappers * refactor tedgecomponent * remove redundant code * subscribe to az/collectd topics in init_session * remove duplicate init_sessions
Diffstat (limited to 'configuration/debian/tedge_mapper')
-rw-r--r--configuration/debian/tedge_mapper/postinst13
1 files changed, 2 insertions, 11 deletions
diff --git a/configuration/debian/tedge_mapper/postinst b/configuration/debian/tedge_mapper/postinst
index dbfcd140..a8625f3f 100644
--- a/configuration/debian/tedge_mapper/postinst
+++ b/configuration/debian/tedge_mapper/postinst
@@ -11,19 +11,10 @@ fi
# Create user tedge-mapper with no home(--no-create-home), no login(--shell) and in group tedge(--ingroup)
if ! getent passwd tedge-mapper >/dev/null; then
adduser --quiet --system --no-create-home --ingroup tedge-mapper --shell /usr/sbin/nologin tedge-mapper
+ adduser tedge-mapper tedge
fi
-### Create supported cloud operations directories
-install -g tedge -o tedge -m 755 -d /etc/tedge/operations/c8y
-install -g tedge -o tedge -m 755 -d /etc/tedge/operations/az
-
-### Create operation file.
-# This allows thin-edge.io components to list and declare supported operations for the cloud provider.
-# Some of the examples for Cumulocity IoT supported opertations: https://cumulocity.com/api/10.11.0/#section/Device-management-library/Miscellaneous
-install -g tedge -o tedge -m 644 /dev/null /etc/tedge/operations/c8y/c8y_SoftwareUpdate
-install -g tedge -o tedge -m 644 /dev/null /etc/tedge/operations/c8y/c8y_Restart
-
### Initialize the sm mapper
runuser -u tedge-mapper -- tedge_mapper --init c8y
-
+runuser -u tedge-mapper -- tedge_mapper --init az
#DEBHELPER#