mirror of
https://github.com/bisq-network/bisq.git
synced 2024-11-19 18:03:12 +01:00
57157c7e4f
* Report HS version to pricenode In order to evaluate progress on https://github.com/bisq-network/projects/issues/23, the Bisq app reports its hiddenservice version. This change is going to be undone as soon as we do not need the info anymore. * Added hsversion scraper script * Added installer/uninstaller * Cleanup * Fix unit name
30 lines
756 B
Bash
Executable File
30 lines
756 B
Bash
Executable File
#!/bin/sh
|
|
set -e
|
|
|
|
echo "[*] Network Size Monitoring removal script"
|
|
|
|
##### change paths if necessary for your system
|
|
|
|
ROOT_USER=root
|
|
|
|
SCRAPER_HOME=/journalreader
|
|
|
|
#####
|
|
echo "[*] Checking environment..."
|
|
if [ ! -f "${SCRAPER_HOME}/scraperscript_hsversion.sh" ]; then
|
|
echo 'There is nothing to be removed.'
|
|
echo 'Exiting...'
|
|
exit
|
|
fi
|
|
|
|
echo "[*] Removing journal parser script"
|
|
sudo -H -i -u "${ROOT_USER}" rm "${SCRAPER_HOME}/scraperscript_hsversion.sh"
|
|
|
|
echo "[*] Reverting collectd config"
|
|
sudo -H -i -u "${ROOT_USER}" sed -i '/<Plugin exec>.*/ {N;N; s/<Plugin exec>.*scraperscript_hsversion.sh.*<.Plugin>//g}' /etc/collectd/collectd.conf
|
|
|
|
echo "[*] Restarting services"
|
|
sudo -H -i -u "${ROOT_USER}" systemctl restart collectd.service
|
|
|
|
echo '[*] Done!'
|