#!/bin/bash #set -e app=ucoin data_path=$(sudo yunohost app setting $app data_path) # Upgrade uCoin package cd $data_path git pull sudo npm install # Update uCoin daemon sudo pm2 update ucoin