diff --git a/openwisp-config/Makefile b/openwisp-config/Makefile index 07a0e70..5e4ecfd 100644 --- a/openwisp-config/Makefile +++ b/openwisp-config/Makefile @@ -36,7 +36,7 @@ define Package/openwisp-config/install $(1)/usr/sbin \ $(1)/etc/init.d \ $(1)/etc/config \ - $(1)/etc/openwisp \ + $(1)/usr/lib/openwisp-config \ $(1)/usr/lib/lua/openwisp $(INSTALL_BIN) \ @@ -90,7 +90,7 @@ define Package/openwisp-config/install files/sbin/openwisp-get-random-number.lua \ $(1)/usr/sbin/openwisp-get-random-number - $(CP) ../VERSION $(1)/etc/openwisp/ + $(CP) ../VERSION $(1)/usr/lib/openwisp-config/ endef $(eval $(call BuildPackage,openwisp-config)) diff --git a/openwisp-config/files/openwisp.agent b/openwisp-config/files/openwisp.agent index 24be451..21a6bac 100755 --- a/openwisp-config/files/openwisp.agent +++ b/openwisp-config/files/openwisp.agent @@ -139,7 +139,7 @@ while [ -n "$1" ]; do done if [ "$VERSION" -eq "1" ]; then - VERSION=$(cat /etc/openwisp/VERSION) + VERSION=$(cat /usr/lib/openwisp-config/VERSION) echo "openwisp-config $VERSION" exit 0 fi