File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -39,7 +39,7 @@ function update_script() {
3939 cp -r /opt/firefly/storage /opt/storage
4040 msg_ok " Backed up data"
4141
42- fetch_and_deploy_gh_release " firefly" " firefly-iii/firefly-iii"
42+ fetch_and_deploy_gh_release " firefly" " firefly-iii/firefly-iii" " prebuild " " latest " " /opt/firefly " " FireflyIII-*.zip "
4343
4444 msg_info " Updating ${APP} to v${RELEASE} "
4545 rm -rf /opt/firefly/storage
Original file line number Diff line number Diff line change @@ -13,14 +13,9 @@ setting_up_container
1313network_check
1414update_os
1515
16- msg_info " Installing Dependencies"
17- $STD apt-get install -y apache2
18- msg_ok " Installed Dependencies"
19-
2016PHP_VERSION=" 8.4" PHP_APACHE=" YES" PHP_MODULE=" mysql" setup_php
2117setup_composer
2218setup_mariadb
23- fetch_and_deploy_gh_release " firefly" " firefly-iii/firefly-iii"
2419LOCAL_IP=$( hostname -I | awk ' {print $1}' )
2520
2621msg_info " Setting up database"
@@ -38,15 +33,15 @@ mariadb -u root -e "GRANT ALL ON $DB_NAME.* TO '$DB_USER'@'localhost'; FLUSH PRI
3833} >> ~/firefly.creds
3934msg_ok " Set up database"
4035
36+ fetch_and_deploy_gh_release " firefly" " firefly-iii/firefly-iii" " prebuild" " latest" " /opt/firefly" " FireflyIII-*.zip"
37+
4138msg_info " Configuring Firefly III (Patience)"
4239chown -R www-data:www-data /opt/firefly
4340chmod -R 775 /opt/firefly/storage
4441cd /opt/firefly
4542cp .env.example .env
4643sed -i " s/DB_HOST=.*/DB_HOST=localhost/" /opt/firefly/.env
4744sed -i " s/DB_PASSWORD=.*/DB_PASSWORD=$DB_PASS /" /opt/firefly/.env
48- echo " export COMPOSER_ALLOW_SUPERUSER=1" >> ~/.bashrc
49- source ~ /.bashrc
5045$STD composer install --no-dev --no-plugins --no-interaction
5146$STD php artisan firefly:upgrade-database
5247$STD php artisan firefly:correct-database
You can’t perform that action at this time.
0 commit comments