hs.scripts/rollback/flarum/update.sh
2024-05-02 11:33:35 +02:00

18 lines
460 B
Bash

#!/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."