13 lines
353 B
Bash
Executable File
13 lines
353 B
Bash
Executable File
#!/bin/bash
|
|
set -ue
|
|
set -x
|
|
|
|
SCRIPTDIR=$(dirname $0)
|
|
|
|
ln -sf $NEUTRON_VENV_DIR/bin/neutron-ovs-cleanup /usr/local/bin/neutron-ovs-cleanup
|
|
|
|
DIB_INIT_SYSTEM=$(dib-init-system)
|
|
if [ "$DIB_INIT_SYSTEM" == "systemd" ]; then
|
|
install -D -g root -o root -m 0755 ${SCRIPTDIR}/neutron-ovs-cleanup.service /usr/lib/systemd/system/neutron-ovs-cleanup.service
|
|
fi
|