summaryrefslogtreecommitdiffstats
path: root/configuration/debian/tedge_mapper
diff options
context:
space:
mode:
Diffstat (limited to 'configuration/debian/tedge_mapper')
-rw-r--r--configuration/debian/tedge_mapper/postinst2
-rw-r--r--configuration/debian/tedge_mapper/prerm7
2 files changed, 2 insertions, 7 deletions
diff --git a/configuration/debian/tedge_mapper/postinst b/configuration/debian/tedge_mapper/postinst
index 643afb73..cb473742 100644
--- a/configuration/debian/tedge_mapper/postinst
+++ b/configuration/debian/tedge_mapper/postinst
@@ -25,6 +25,6 @@ install -g tedge -o tedge -m 644 /dev/null /etc/tedge/operations/c8y/c8y_Restart
install -g tedge -o tedge -m 644 /dev/null /etc/tedge/operations/c8y/c8y_LogfileRequest
### Initialize the sm mapper
-tedge_mapper --init sm-c8y
+tedge_mapper --init c8y
#DEBHELPER#
diff --git a/configuration/debian/tedge_mapper/prerm b/configuration/debian/tedge_mapper/prerm
index a8563a9e..cf4bf9ba 100644
--- a/configuration/debian/tedge_mapper/prerm
+++ b/configuration/debian/tedge_mapper/prerm
@@ -6,7 +6,7 @@ print_hint() {
echo "$1 is running. Stop $1 before installation, use: systemctl stop $1"
echo "If you want to start $1 after installation, use: systemctl restart $1"
echo "Make sure that other mappers are not running: systemctl is-active [mapper_name]"
- echo "Known mappers are: tedge-mapper-c8y, tedge-mapper-collectd, tedge-mapper-sm-c8y, tedge-mapper-az".
+ echo "Known mappers are: tedge-mapper-c8y, tedge-mapper-collectd, tedge-mapper-az".
}
# Reenable the services only if systemctl is available
@@ -16,11 +16,6 @@ if command -v systemctl >/dev/null; then
exit 1
fi
- if systemctl is-active --quiet tedge-mapper-sm-c8y; then
- print_hint "tedge-mapper-sm-c8y"
- exit 1
- fi
-
if systemctl is-active --quiet tedge-mapper-collectd; then
print_hint "tedge-mapper-collectd"
exit 1