This commit is contained in:
Slaviša Arežina
2026-01-05 21:54:52 +01:00
committed by GitHub
parent 337fa761fe
commit 91ce09982c
2 changed files with 8 additions and 17 deletions

View File

@@ -27,10 +27,15 @@ function update_script() {
msg_error "No ${APP} Installation Found!"
exit
fi
setup_mariadb
setup_mariadb
NODE_VERSION="22" NODE_MODULE="yarn@latest" setup_nodejs
# Fix for previous versions not having cronjob
if ! grep -Fq 'php /opt/monica/artisan schedule:run' /etc/crontab; then
echo '* * * * * root php /opt/monica/artisan schedule:run >> /dev/null 2>&1' >>/etc/crontab
fi
if check_for_gh_release "monica" "monicahq/monica"; then
msg_info "Stopping Service"
systemctl stop apache2