diff --git a/installer/sashimono-install.sh b/installer/sashimono-install.sh index c1daf3e..96d4aca 100755 --- a/installer/sashimono-install.sh +++ b/installer/sashimono-install.sh @@ -171,6 +171,10 @@ else ! $SASHIMONO_BIN/sagent new $SASHIMONO_DATA $inetaddr $inst_count $cpuMicroSec $ramKB $swapKB $diskKB && rollback fi +if [[ "$NO_MB" == "" && -f $MB_XRPL_DATA/mb-xrpl.cfg ]]; then + ! sudo -u "$MB_XRPL_USER" MB_DATA_DIR="$MB_XRPL_DATA" node "$MB_XRPL_BIN" upgrade && rollback +fi + # Install Sashimono Agent systemd service. # StartLimitIntervalSec=0 to make unlimited retries. RestartSec=5 is to keep 5 second gap between restarts. echo "[Unit] diff --git a/installer/setup.sh b/installer/setup.sh index 30fa324..224e5dd 100755 --- a/installer/setup.sh +++ b/installer/setup.sh @@ -521,6 +521,12 @@ if [ "$mode" == "install" ]; then check_sys_req + # Check bc command is installed. + if ! command -v bc &>/dev/null; then + echo "bc command not found. Installing.." + apt-get -y install bc >/dev/null + fi + # Display licence file and ask for concent. printf "\n*****************************************************************************************************\n\n" curl --silent $licence_url | cat