@@ -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
7674msg_ok " Completed Successfully!\n"
7775echo -e " ${CREATING}${GN}${APP} setup has been successfully initialized!${CL} "
7876echo -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