Skip to content

Commit

Permalink
[fix] Remove symlink to initscript with previous name
Browse files Browse the repository at this point in the history
Remove the symlink with the previous name because
otherwise the service would exist twice with different
names.

Redmine-patch-id: 8801

Signed-off-by: Oliver Kraitschy <[email protected]>
  • Loading branch information
okraits authored Sep 24, 2024
1 parent affa011 commit 9d7819a
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions openwisp-config/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -100,16 +100,11 @@ define Package/openwisp-config/postinst
if [ ! -L $${IPKG_INSTROOT}/usr/sbin/openwisp_config ]; then
ln -s /usr/sbin/openwisp-config $${IPKG_INSTROOT}/usr/sbin/openwisp_config
fi

if [ ! -L $${IPKG_INSTROOT}/etc/init.d/openwisp_config ]; then
ln -s /etc/init.d/openwisp-config $${IPKG_INSTROOT}/etc/init.d/openwisp_config
fi
endef

define Package/openwisp-config/postrm
#!/bin/sh
rm -f $${IPKG_INSTROOT}/usr/sbin/openwisp_config
rm -f $${IPKG_INSTROOT}/etc/init.d/openwisp_config
endef

$(eval $(call BuildPackage,openwisp-config))

0 comments on commit 9d7819a

Please sign in to comment.