Skip to content

Commit

Permalink
[change] Moved package VERSION to /usr/lib/openwisp-config/ #191
Browse files Browse the repository at this point in the history
Closes #191
  • Loading branch information
Aryamanz29 authored Feb 28, 2023
1 parent 0726026 commit dcda6e9
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions openwisp-config/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -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) \
Expand Down Expand Up @@ -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))
2 changes: 1 addition & 1 deletion openwisp-config/files/openwisp.agent
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit dcda6e9

Please sign in to comment.