From 6827056a1d5b14e3e938324f6da7316a93c9d06e Mon Sep 17 00:00:00 2001 From: CanbiZ <47820557+MickLesk@users.noreply.github.com> Date: Mon, 24 Feb 2025 14:52:23 +0100 Subject: [PATCH] Fix: Firefly III - Update-Script based on their docs (#2534) * Fix: Update-Script Firefly III Based on there docs * Update autolabeler.yml * Update autolabeler.yml * Update firefly.sh * Update firefly.sh --- ct/firefly.sh | 18 ++++++++---------- 1 file changed, 8 insertions(+), 10 deletions(-) diff --git a/ct/firefly.sh b/ct/firefly.sh index 1a5dbd557..5f267af02 100644 --- a/ct/firefly.sh +++ b/ct/firefly.sh @@ -37,21 +37,19 @@ check_container_resources msg_info "Updating ${APP} to v${RELEASE}" cp /opt/firefly/.env /opt/.env cp -r /opt/firefly/storage /opt/storage - rm -rf /opt/firefly/* cd /opt wget -q "https://github.com/firefly-iii/firefly-iii/releases/download/v${RELEASE}/FireflyIII-v${RELEASE}.tar.gz" tar -xzf FireflyIII-v${RELEASE}.tar.gz -C /opt/firefly --exclude='storage' + cp /opt/.env /opt/firefly/.env + cp -r /opt/storage /opt/firefly/storage cd /opt/firefly - $STD composer install --no-dev --no-interaction - $STD php artisan migrate --seed --force - $STD php artisan firefly:decrypt-all - $STD php artisan cache:clear - $STD php artisan view:clear - $STD php artisan firefly:upgrade-database - $STD php artisan firefly:laravel-passport-keys chown -R www-data:www-data /opt/firefly chmod -R 775 /opt/firefly/storage - + $STD php artisan migrate --seed --force + $STD php artisan cache:clear + $STD php artisan view:clear + $STD php artisan firefly-iii:upgrade-database + $STD php artisan firefly-iii:laravel-passport-keys echo "${RELEASE}" >"/opt/${APP}_version.txt" msg_ok "Updated ${APP} to v${RELEASE}" @@ -76,4 +74,4 @@ description msg_ok "Completed Successfully!\n" echo -e "${CREATING}${GN}${APP} setup has been successfully initialized!${CL}" echo -e "${INFO}${YW} Access it using the following URL:${CL}" -echo -e "${TAB}${GATEWAY}${BGN}http://${IP}${CL}" \ No newline at end of file +echo -e "${TAB}${GATEWAY}${BGN}http://${IP}${CL}"