function uninstall(){
echo "systemctl disable openmano.service " && systemctl disable openmano.service 2>/dev/null || echo " Already done"
+ echo "systemctl disable openmano.service " && systemctl disable osm-ro.service 2>/dev/null || echo " Already done"
echo "service openmano stop " && service openmano stop 2>/dev/null || echo " Already done"
- for file in /opt/openmano /etc/default/openmanod.cfg /etc/osm/openmanod.cfg /var/log/openmano /var/log/osm/openmano* /etc/systemd/system/openmano.service /usr/bin/openmano /usr/sbin/service-openmano /usr/bin/openmano-report
+ echo "service osm-ro stop " && service openmano stop 2>/dev/null || echo " Already done"
+ for file in /opt/openmano /etc/default/openmanod.cfg /etc/osm/openmanod.cfg /var/log/openmano /var/log/osm/openmano* /etc/systemd/system/openmano.service /etc/systemd/system/osm-ro.service /usr/bin/openmano /usr/sbin/service-openmano /usr/bin/openmano-report
do
echo rm $file
rm -rf $file || ! echo "Can not delete '$file'. Needed root privileges?" >&2 || exit 1
chown -R $SUDO_USER /opt/openmano
mkdir -p /etc/systemd/system/
-cat > /etc/systemd/system/openmano.service << EOF
+cat > /etc/systemd/system/osm-ro.service << EOF
[Unit]
Description=openmano server
[[ -n $DELETE ]] && rm -rf ${FILE}
-service openmano start
-systemctl enable openmano.service
+service osm-ro start
+systemctl enable osm-ro.service
echo Done
exit