Browse Source

atlas-sw-probe: fix copypaste error and clean tmp dir on exit

- Fix copypaste error for PUB_KEY link creation
- Clean tmp dir on exit to clear any remaining data

Signed-off-by: Ansuel Smith <ansuelsmth@gmail.com>
lilik-openwrt-22.03
Ansuel Smith 3 years ago
parent
commit
842a9d399f
No known key found for this signature in database GPG Key ID: AC001D09ADBFEAD7
2 changed files with 5 additions and 2 deletions
  1. +1
    -1
      net/atlas-sw-probe/Makefile
  2. +4
    -1
      net/atlas-sw-probe/files/atlas.init

+ 1
- 1
net/atlas-sw-probe/Makefile View File

@ -8,7 +8,7 @@ include $(TOPDIR)/rules.mk
PKG_NAME:=atlas-sw-probe PKG_NAME:=atlas-sw-probe
PKG_VERSION:=5020 PKG_VERSION:=5020
PKG_RELEASE:=3
PKG_RELEASE:=4
PKG_SOURCE_PROTO:=git PKG_SOURCE_PROTO:=git
PKG_SOURCE_URL:=https://github.com/RIPE-NCC/ripe-atlas-software-probe.git PKG_SOURCE_URL:=https://github.com/RIPE-NCC/ripe-atlas-software-probe.git


+ 4
- 1
net/atlas-sw-probe/files/atlas.init View File

@ -100,7 +100,7 @@ create_key() {
#Link priv/pub key #Link priv/pub key
[ -f $PRIV_KEY_FILE ] || ln -s $probe_key $PRIV_KEY_FILE [ -f $PRIV_KEY_FILE ] || ln -s $probe_key $PRIV_KEY_FILE
[ -f $PRIV_KEY_FILE ] || ln -s $probe_pub_key $PUB_KEY_FILE
[ -f $PUB_KEY_FILE ] || ln -s $probe_pub_key $PUB_KEY_FILE
#Fix permission #Fix permission
chown atlas $probe_key $probe_pub_key chown atlas $probe_key $probe_pub_key
@ -177,6 +177,9 @@ stop_service() {
kill "$tunnel_pid" kill "$tunnel_pid"
fi fi
fi fi
# Clean run dir
rm -r $TMP_BASE_DIR
} }
safe_mkdir() { safe_mkdir() {


Loading…
Cancel
Save