Skip to content

Commit

Permalink
update postinst script
Browse files Browse the repository at this point in the history
  • Loading branch information
aa65535 committed Aug 28, 2016
1 parent ebd5e09 commit 9ca10a5
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -45,10 +45,12 @@ endef

define Package/luci-app-shadowsocks/postinst
#!/bin/sh
if [ -z "$${IPKG_INSTROOT}" ]; then
. /etc/uci-defaults/luci-shadowsocks
rm -f /etc/uci-defaults/luci-shadowsocks
rm -rf /tmp/luci-modulecache /tmp/luci-indexcache
if [ -f ${IPKG_INSTROOT}/etc/uci-defaults/luci-shadowsocks ]; then
( . ${IPKG_INSTROOT}/etc/uci-defaults/luci-shadowsocks )
rm -f ${IPKG_INSTROOT}/etc/uci-defaults/luci-shadowsocks
fi
if [ -z "${IPKG_INSTROOT}" ]; then
rm -rf /tmp/luci-indexcache /tmp/luci-modulecache
fi
exit 0
endef
Expand Down

0 comments on commit 9ca10a5

Please sign in to comment.