Verified Commit 10d00bd7 authored by Štěpán Henek's avatar Štěpán Henek 🌩

foris-controller-openvpn-module: compression logic updates

parent 038036c0
#
# Copyright (C) 2018 CZ.NIC z. s. p. o. (https://www.nic.cz/)
# Copyright (C) 2019 CZ.NIC z. s. p. o. (https://www.nic.cz/)
#
# This is free software, licensed under the GNU General Public License v2.
# See /LICENSE for more information.
......@@ -8,7 +8,7 @@
include $(TOPDIR)/rules.mk
PKG_NAME:=foris-controller-openvpn-module
PKG_VERSION:=0.5.1
PKG_VERSION:=0.6
PKG_RELEASE:=1
PKG_SOURCE_SUBDIR:=$(PKG_NAME)
PKG_SOURCE_PROTO:=git
......@@ -38,6 +38,19 @@ define Package/$(PKG_NAME)/description
This is a openvpn module for foris-controller
endef
define Package/${PKG_NAME}/postinst
#!/bin/sh
[ -n "$$IPKG_INSTROOT" ] || {
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
uci set openvpn.server_turris.compress=lzo
fi
uci commit openvpn
fi
}
endef
# Package install definition
$(eval $(call ForisControllerModule,$(PKG_NAME)))
$(eval $(call Py3Package,$(PKG_NAME)))
......
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