1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/duniter_ynh.git synced 2024-09-03 18:26:35 +02:00

update scripts

This commit is contained in:
Moul 2015-05-24 17:07:31 -04:00
parent ecd048b3d7
commit 4b6e84a0c5
3 changed files with 5 additions and 31 deletions

View file

@ -31,9 +31,3 @@ ucoind config --noupnp --remoteh $domain --port $port --salt $salt --passwd $pwd
# Launch uCoin node with daemon pm2 # Launch uCoin node with daemon pm2
pm2 start /usr/bin/ucoind -- start --noupnp pm2 start /usr/bin/ucoind -- start --noupnp
# Add uCoin daemon to the YunoHost monitoring
#sudo yunohost service add ucoin --log pm2 logs
# Reload SSOwat
#sudo yunohost app ssowatconf

View file

@ -12,6 +12,3 @@ sudo apt-get -y remove nodejs node-gyp npm
# Close opened port # Close opened port
sudo yunohost firewall disallow TCP $port sudo yunohost firewall disallow TCP $port
# Reload SSOwat
sudo yunohost app ssowatconf

View file

@ -1,27 +1,10 @@
#!/bin/bash #!/bin/bash
app=ucoin
# Retrieve arguments # Stop uCoin daemon
domain=$(sudo yunohost app setting $app domain) pm2 stop ucoind
path=$(sudo yunohost app setting $app path)
is_public=$(sudo yunohost app setting $app is_public)
# Remove trailing "/" for next commands
path=${path%/}
# Upgrade ucoin package # Upgrade ucoin package
sudo apt-get update sudo npm install -g ucoin
# If app is public, add url to SSOWat conf as skipped_uris
if [ "$is_public" = "Yes" ];
then
# See install script
sudo yunohost app setting $app unprotected_uris -v "/"
# Remove old settings
sudo yunohost app setting $app skipped_uris -d
fi
# Restart services
sudo service nginx reload
sudo yunohost app ssowatconf
# Restart uCoin daemon
pm2 restart ucoind