Delete temporary files after installing the FTL binary. Fixes #1525

This commit is contained in:
DL6ER 2017-06-17 08:54:26 +02:00
parent 54a88ab5ab
commit 3d7582faec
No known key found for this signature in database
GPG key ID: 00135ACBD90B28DD

View file

@ -1277,6 +1277,7 @@ FTLinstall() {
echo -n "transferred... " echo -n "transferred... "
stop_service pihole-FTL &> /dev/null stop_service pihole-FTL &> /dev/null
install -T -m 0755 /tmp/${binary} /usr/bin/pihole-FTL install -T -m 0755 /tmp/${binary} /usr/bin/pihole-FTL
rm /tmp/${binary} /tmp/${binary}.sha1
cd "${orig_dir}" cd "${orig_dir}"
install -T -m 0755 "${PI_HOLE_LOCAL_REPO}/advanced/pihole-FTL.service" "/etc/init.d/pihole-FTL" install -T -m 0755 "${PI_HOLE_LOCAL_REPO}/advanced/pihole-FTL.service" "/etc/init.d/pihole-FTL"
echo "done." echo "done."