1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/duniter_ynh.git synced 2024-09-03 18:26:35 +02:00
duniter_ynh/scripts/remove
2016-05-31 22:42:33 +00:00

14 lines
240 B
Bash
Executable file

#!/bin/bash
# Retrieve argument
port=$2
# Delete uCoin node daemon
pm2 delete ucoind
# Remove uCoin node
sudo npm remove ucoin pm2
sudo apt-get -y remove nodejs node-gyp npm
# Close opened port
sudo yunohost firewall disallow TCP $port