mirror of
https://github.com/YunoHost-Apps/duniter_ynh.git
synced 2024-09-03 18:26:35 +02:00
17 lines
286 B
Bash
Executable file
17 lines
286 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
|
|
|
|
# Reload SSOwat
|
|
sudo yunohost app ssowatconf
|