diff --git a/ct/firefly.sh b/ct/firefly.sh index 1a5dbd55704..5f267af0212 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 + chown -R www-data:www-data /opt/firefly + chmod -R 775 /opt/firefly/storage $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 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}"