From: tierno Date: Wed, 7 Dec 2016 17:31:40 +0000 (+0100) Subject: installation script service add openflow tool X-Git-Tag: v1.0.2~2 X-Git-Url: https://osm.etsi.org/gitweb/?a=commitdiff_plain;h=refs%2Fchanges%2F66%2F766%2F2;p=osm%2Fopenvim.git installation script service add openflow tool Change-Id: I17b64293da5ccb5d6b28c54d9b0882f5b498d024 Signed-off-by: tierno --- diff --git a/scripts/install-openvim-service.sh b/scripts/install-openvim-service.sh index d9f933f..4cf393d 100755 --- a/scripts/install-openvim-service.sh +++ b/scripts/install-openvim-service.sh @@ -38,7 +38,7 @@ function usage(){ function uninstall(){ echo "systemctl disable openvim.service " && systemctl disable openvim.service 2>/dev/null || echo " Already done" echo "service openvim stop " && service openvim stop 2>/dev/null || echo " Already done" - for file in /opt/openvim /etc/default/openvimd.cfg /var/log/openvim /etc/systemd/system/openvim.service /usr/bin/openvim /usr/bin/initopenvim /usr/sbin/service-openvim /usr/bin/openvim-report + for file in /opt/openvim /etc/default/openvimd.cfg /var/log/openvim /etc/systemd/system/openvim.service /usr/bin/openvim /usr/bin/initopenvim /usr/sbin/service-openvim /usr/bin/openvim-report /usr/bin/openflow do rm -rf $file || ! echo "Can not delete '$file'. Needed root privileges?" >&2 || exit 1 done @@ -137,6 +137,7 @@ ln -s -v /opt/openvim/openvim /usr/bin/openvim ln -s -v /opt/openvim/scripts/service-openvim.sh /usr/sbin/service-openvim ln -s -v /opt/openvim/scripts/openvim-report.sh /usr/bin/openvim-report ln -s -v /opt/openvim/scripts/initopenvim.sh /usr/bin/initopenvim +ln -s -v /opt/openvim/openflow /usr/bin/openflow chown -R $SUDO_USER /opt/openvim