@@ -37,21 +37,19 @@ check_container_resources
37
37
msg_info " Updating ${APP} to v${RELEASE} "
38
38
cp /opt/firefly/.env /opt/.env
39
39
cp -r /opt/firefly/storage /opt/storage
40
- rm -rf /opt/firefly/*
41
40
cd /opt
42
41
wget -q " https://github.com/firefly-iii/firefly-iii/releases/download/v${RELEASE} /FireflyIII-v${RELEASE} .tar.gz"
43
42
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
44
45
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
46
48
$STD php artisan migrate --seed --force
47
- $STD php artisan firefly:decrypt-all
48
49
$STD php artisan cache:clear
49
50
$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
55
53
echo " ${RELEASE} " > " /opt/${APP} _version.txt"
56
54
msg_ok " Updated ${APP} to v${RELEASE} "
57
55
@@ -76,4 +74,4 @@ description
76
74
msg_ok " Completed Successfully!\n"
77
75
echo -e " ${CREATING}${GN}${APP} setup has been successfully initialized!${CL} "
78
76
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