diff options
author | Lukasz Woznicki <lukasz.woznicki@softwareag.com> | 2022-02-09 12:59:13 +0000 |
---|---|---|
committer | Lukasz Woznicki <lukasz.woznicki@softwareag.com> | 2022-02-18 09:08:21 +0000 |
commit | b1907dc4780709bad572a7108314c563eb02b70a (patch) | |
tree | 3f6509c92eab17ade6ff1d824505699b98c4bd07 /configuration | |
parent | 9d2122d8775509e14aa519436f86987502ffcd77 (diff) |
Remove sm mapper from config scripts and update docs to not mention it
anymore
Signed-off-by: Lukasz Woznicki <lukasz.woznicki@softwareag.com>
Diffstat (limited to 'configuration')
-rw-r--r-- | configuration/debian/tedge_mapper/postinst | 2 | ||||
-rw-r--r-- | configuration/debian/tedge_mapper/prerm | 7 | ||||
-rw-r--r-- | configuration/init/systemd/tedge-mapper-sm-c8y.service | 12 |
3 files changed, 2 insertions, 19 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 diff --git a/configuration/init/systemd/tedge-mapper-sm-c8y.service b/configuration/init/systemd/tedge-mapper-sm-c8y.service deleted file mode 100644 index aa44986e..00000000 --- a/configuration/init/systemd/tedge-mapper-sm-c8y.service +++ /dev/null @@ -1,12 +0,0 @@ -[Unit] -Description=tedge-mapper-sm-c8y converts SmartREST2.0 format to/from Software Management Thin Edge JSON format. -After=syslog.target network.target mosquitto.service - -[Service] -User=tedge-mapper -ExecStart=/usr/bin/tedge_mapper sm-c8y -Restart=on-failure -RestartPreventExitStatus=255 - -[Install] -WantedBy=multi-user.target |