Skip to content

Commit 4d236e6

Browse files
authored
Firefly: Move to prebuild archive as installation source (#5952)
1 parent f4ac341 commit 4d236e6

2 files changed

Lines changed: 3 additions & 8 deletions

File tree

ct/firefly.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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

install/firefly-install.sh

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -13,14 +13,9 @@ setting_up_container
1313
network_check
1414
update_os
1515

16-
msg_info "Installing Dependencies"
17-
$STD apt-get install -y apache2
18-
msg_ok "Installed Dependencies"
19-
2016
PHP_VERSION="8.4" PHP_APACHE="YES" PHP_MODULE="mysql" setup_php
2117
setup_composer
2218
setup_mariadb
23-
fetch_and_deploy_gh_release "firefly" "firefly-iii/firefly-iii"
2419
LOCAL_IP=$(hostname -I | awk '{print $1}')
2520

2621
msg_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
3934
msg_ok "Set up database"
4035

36+
fetch_and_deploy_gh_release "firefly" "firefly-iii/firefly-iii" "prebuild" "latest" "/opt/firefly" "FireflyIII-*.zip"
37+
4138
msg_info "Configuring Firefly III (Patience)"
4239
chown -R www-data:www-data /opt/firefly
4340
chmod -R 775 /opt/firefly/storage
4441
cd /opt/firefly
4542
cp .env.example .env
4643
sed -i "s/DB_HOST=.*/DB_HOST=localhost/" /opt/firefly/.env
4744
sed -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

0 commit comments

Comments
 (0)