Commit 9f9cebe6 authored by Martin Matějek's avatar Martin Matějek

foris-controller-openvpn-module: restart foris-controller in postinst

parent a93da500
......@@ -9,7 +9,7 @@ include $(TOPDIR)/rules.mk
PKG_NAME:=foris-controller-openvpn-module
PKG_VERSION:=0.6.1
PKG_RELEASE:=1
PKG_RELEASE:=2
PKG_SOURCE_SUBDIR:=$(PKG_NAME)
PKG_SOURCE_PROTO:=git
PKG_SOURCE_URL:=https://gitlab.labs.nic.cz/turris/foris-controller-openvpn-module.git
......@@ -43,7 +43,7 @@ endef
define Package/${PKG_NAME}/postinst
#!/bin/sh
[ -n "$$IPKG_INSTROOT" ] || {
if [ -z "$$IPKG_INSTROOT" ]; then
if uci -q get openvpn.server_turris.comp_lzo > /dev/null ; then
uci del openvpn.server_turris.comp_lzo
if ! uci -q get openvpn.server_turris.compress > /dev/null ; then
......@@ -51,7 +51,9 @@ define Package/${PKG_NAME}/postinst
fi
uci commit openvpn
fi
}
/etc/init.d/foris-controller restart
fi
endef
#
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment