diff options
author | Ansuel Smith <ansuelsmth@gmail.com> | 2021-08-02 15:08:22 +0200 |
---|---|---|
committer | Ansuel Smith <ansuelsmth@gmail.com> | 2021-08-02 15:11:01 +0200 |
commit | 842a9d399f1e3eb96290f3f0df72e70a5cd4d5b7 (patch) | |
tree | 76008b74606b0cb912d86e139279ab6cba7f8818 /net/atlas-sw-probe | |
parent | 9e434215e8975d823e3e2694f42a9a4cbab15047 (diff) |
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>
Diffstat (limited to 'net/atlas-sw-probe')
-rw-r--r-- | net/atlas-sw-probe/Makefile | 2 | ||||
-rw-r--r-- | net/atlas-sw-probe/files/atlas.init | 5 |
2 files changed, 5 insertions, 2 deletions
diff --git a/net/atlas-sw-probe/Makefile b/net/atlas-sw-probe/Makefile index 445d7ff58..d300317d8 100644 --- a/net/atlas-sw-probe/Makefile +++ b/net/atlas-sw-probe/Makefile @@ -8,7 +8,7 @@ include $(TOPDIR)/rules.mk PKG_NAME:=atlas-sw-probe PKG_VERSION:=5020 -PKG_RELEASE:=3 +PKG_RELEASE:=4 PKG_SOURCE_PROTO:=git PKG_SOURCE_URL:=https://github.com/RIPE-NCC/ripe-atlas-software-probe.git diff --git a/net/atlas-sw-probe/files/atlas.init b/net/atlas-sw-probe/files/atlas.init index a833a9510..a0fe8192d 100644 --- a/net/atlas-sw-probe/files/atlas.init +++ b/net/atlas-sw-probe/files/atlas.init @@ -100,7 +100,7 @@ create_key() { #Link priv/pub key [ -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 chown atlas $probe_key $probe_pub_key @@ -177,6 +177,9 @@ stop_service() { kill "$tunnel_pid" fi fi + + # Clean run dir + rm -r $TMP_BASE_DIR } safe_mkdir() { |