#!/bin/bash # Exit on command errors and treat unset variables as an error set -eu app=duniter # Stop duniter daemon sudo $app stop # Upgrade Duniter package #dpkg -r #dpkg -i # Start duniter daemon sudo $app start