#!/bin/bash set -e echo "calling for rollback.sh" . $HOME/scripts/rollback.sh php ./flarum nearataMaintenanceMode:toggle true composer update --prefer-dist --no-plugins --no-dev -a --with-all-dependencies php flarum migrate php flarum cache:clear echo "calling setstate.sh to make the update permanent" echo "the following prompt is an opportunity to check whether the forum is still operational." . $HOME/scripts/setstate.sh echo echo "all scripts done."