Skip to content

Commit 6827056

Browse files
authored
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
1 parent 1172662 commit 6827056

File tree

1 file changed

+7
-9
lines changed

1 file changed

+7
-9
lines changed

ct/firefly.sh

+7-9
Original file line numberDiff line numberDiff line change
@@ -37,21 +37,19 @@ check_container_resources
3737
msg_info "Updating ${APP} to v${RELEASE}"
3838
cp /opt/firefly/.env /opt/.env
3939
cp -r /opt/firefly/storage /opt/storage
40-
rm -rf /opt/firefly/*
4140
cd /opt
4241
wget -q "https://github.com/firefly-iii/firefly-iii/releases/download/v${RELEASE}/FireflyIII-v${RELEASE}.tar.gz"
4342
tar -xzf FireflyIII-v${RELEASE}.tar.gz -C /opt/firefly --exclude='storage'
43+
cp /opt/.env /opt/firefly/.env
44+
cp -r /opt/storage /opt/firefly/storage
4445
cd /opt/firefly
45-
$STD composer install --no-dev --no-interaction
46+
chown -R www-data:www-data /opt/firefly
47+
chmod -R 775 /opt/firefly/storage
4648
$STD php artisan migrate --seed --force
47-
$STD php artisan firefly:decrypt-all
4849
$STD php artisan cache:clear
4950
$STD php artisan view:clear
50-
$STD php artisan firefly:upgrade-database
51-
$STD php artisan firefly:laravel-passport-keys
52-
chown -R www-data:www-data /opt/firefly
53-
chmod -R 775 /opt/firefly/storage
54-
51+
$STD php artisan firefly-iii:upgrade-database
52+
$STD php artisan firefly-iii:laravel-passport-keys
5553
echo "${RELEASE}" >"/opt/${APP}_version.txt"
5654
msg_ok "Updated ${APP} to v${RELEASE}"
5755

@@ -76,4 +74,4 @@ description
7674
msg_ok "Completed Successfully!\n"
7775
echo -e "${CREATING}${GN}${APP} setup has been successfully initialized!${CL}"
7876
echo -e "${INFO}${YW} Access it using the following URL:${CL}"
79-
echo -e "${TAB}${GATEWAY}${BGN}http://${IP}${CL}"
77+
echo -e "${TAB}${GATEWAY}${BGN}http://${IP}${CL}"

0 commit comments

Comments
 (0)