Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

upgrade to 1.5.2 #12

Open
wants to merge 7 commits into
base: testing
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 6 additions & 7 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,26 +16,25 @@ If you don't have YunoHost, please consult [the guide](https://yunohost.org/#/in

## Overview

Firefly III Data Importer is the nr. 1 tool to import data into [Firefly III](https://www.firefly-iii.org/). This tools helps you import transactions from files or bank APIs into your
Firefly-III server. Please follow the documentation at https://docs.firefly-iii.org/data-importer/.
Firefly III Data Importer is the nr. 1 tool to import data into [Firefly III](https://www.firefly-liii.org/).
This tools helps you import transactions from files or bank APIs into your Firefly-III server.
The following two links will take you to the official documentation: [installation](https://docs.firefly-iii.org/how-to/data-importer/installation/self-managed/), [configuration](https://docs.firefly-iii.org/how-to/data-importer/how-to-configure/) and [upgrade](https://docs.firefly-iii.org/how-to/data-importer/upgrade/self-managed/).


If your Firefly-III server is installed as a YunoHost app, please note:

- It should be accessible to all visitors (using its internal user management instead of YunoHosts') for the Data Importer to communicate with it.

- When configuring the Data Importer, use the public Firefly-III domain and path, not *localhost*, even if both services are on the same machine.


**Shipped version:** 1.2.2~ynh1

## Screenshots

![Screenshot of Firefly III Importer](./doc/screenshots/firefly-iii-di-start-screen.png)

## Documentation and resources

* Official app website: <https://docs.firefly-iii.org/data-importer/>
* Official admin documentation: <https://docs.firefly-iii.org/data-importer/how-to-use/>
* Official app website: <https://docs.firefly-iii.org/explanation/data-importer/about/introduction/>
* Official admin documentation: <https://docs.firefly-iii.org/how-to/data-importer/installation/self-managed/>
* Upstream app code repository: <https://github.com/firefly-iii/data-importer>
* YunoHost documentation for this app: <https://yunohost.org/app_firefly-iii-di>
* Report a bug: <https://github.com/YunoHost-Apps/firefly-iii-di_ynh/issues>
Expand Down
10 changes: 5 additions & 5 deletions manifest.toml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ name = "Firefly III Importer"
description.en = "Firefly III Data Importer"
description.fr = "Importateur de données Firefly III"

version = "1.2.2~ynh1"
version = "1.5.2~ynh1"

maintainers = []

Expand All @@ -16,7 +16,7 @@ admindoc = "https://docs.firefly-iii.org/data-importer/how-to-use/"
code = "https://github.com/firefly-iii/data-importer"

[integration]
yunohost = ">= 11.1.15"
yunohost = ">= 11.2"
architectures = "all"
multi_instance = true
ldap = false
Expand All @@ -42,8 +42,8 @@ ram.runtime = "50M"

[resources]
[resources.sources.main]
url = "https://github.com/firefly-iii/data-importer/archive/refs/tags/v1.2.2.tar.gz"
sha256 = "2e69f8b68ab8fd0f078e585feb2128b99bf2dd3088c057d2dbd1c75a20860732"
url = "https://github.com/firefly-iii/data-importer/archive/refs/tags/v1.5.2.tar.gz"
sha256 = "ee1debfe137c04e4152bf7ebb6bb50cbd6c4ab2d7dd64bee05b93f7e6c25f7d7"
autoupdate.strategy = "latest_github_tag"

[resources.system_user]
Expand All @@ -54,4 +54,4 @@ ram.runtime = "50M"
main.url = "/"

[resources.apt]
packages = "php8.2-xml php8.2-bcmath"
packages = "php8.3-xml, php8.3-bcmath"
3 changes: 3 additions & 0 deletions scripts/_common.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,9 @@
# COMMON VARIABLES
#=================================================

# PHP version required by FIII Data Importer
YNH_PHP_VERSION="8.3"

# Composer version
YNH_COMPOSER_VERSION="2.5.4"

Expand Down
6 changes: 0 additions & 6 deletions scripts/backup
Original file line number Diff line number Diff line change
Expand Up @@ -33,12 +33,6 @@ ynh_backup --src_path="/etc/nginx/conf.d/$domain.d/$app.conf"

ynh_backup --src_path="/etc/php/$phpversion/fpm/pool.d/$app.conf"

#=================================================
# BACKUP VARIOUS FILES
#=================================================

# ynh_backup --src_path="/etc/cron.d/$app"

#=================================================
# END OF SCRIPT
#=================================================
Expand Down
2 changes: 1 addition & 1 deletion scripts/change_url
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ ynh_script_progression --message="Modifying a config file..."
domain="$new_domain"
path="$new_path"

ynh_add_config --template="../conf/.env" --destination="$install_dir/.env"
ynh_add_config --template=".env" --destination="$install_dir/.env"
chmod 400 "$install_dir/.env"
chown $app "$install_dir/.env"

Expand Down
7 changes: 1 addition & 6 deletions scripts/install
Original file line number Diff line number Diff line change
Expand Up @@ -50,11 +50,6 @@ ynh_script_progression --message="Configuring PHP-FPM..."
# Create a dedicated PHP-FPM config
ynh_add_fpm_config --usage=$fpm_usage --footprint=$fpm_footprint

#=================================================
# NGINX CONFIGURATION
#=================================================
ynh_script_progression --message="Configuring NGINX web server..."

# Create a dedicated NGINX config
ynh_add_nginx_config

Expand All @@ -72,7 +67,7 @@ ynh_exec_warn_less ynh_install_composer --phpversion="$phpversion" --workdir="$i
#=================================================
ynh_script_progression --message="Adding a configuration file..."

ynh_add_config --template="../conf/.env" --destination="$install_dir/.env"
ynh_add_config --template=".env" --destination="$install_dir/.env"

chmod 400 "$install_dir/.env"
chown $app "$install_dir/.env"
Expand Down
5 changes: 0 additions & 5 deletions scripts/remove
Original file line number Diff line number Diff line change
Expand Up @@ -17,11 +17,6 @@ ynh_script_progression --message="Removing NGINX web server configuration..."
# Remove the dedicated NGINX config
ynh_remove_nginx_config

#=================================================
# REMOVE PHP-FPM CONFIGURATION
#=================================================
ynh_script_progression --message="Removing PHP-FPM configuration..."

# Remove the dedicated PHP-FPM config
ynh_remove_fpm_config

Expand Down
5 changes: 0 additions & 5 deletions scripts/restore
Original file line number Diff line number Diff line change
Expand Up @@ -27,11 +27,6 @@ ynh_script_progression --message="Restoring the PHP-FPM configuration..."

ynh_restore_file --origin_path="/etc/php/$phpversion/fpm/pool.d/$app.conf"

#=================================================
# RESTORE THE NGINX CONFIGURATION
#=================================================
ynh_script_progression --message="Restoring the NGINX web server configuration..."

ynh_restore_file --origin_path="/etc/nginx/conf.d/$domain.d/$app.conf"

#=================================================
Expand Down
5 changes: 0 additions & 5 deletions scripts/upgrade
Original file line number Diff line number Diff line change
Expand Up @@ -69,11 +69,6 @@ ynh_script_progression --message="Upgrading PHP-FPM configuration..."
# Create a dedicated PHP-FPM config
ynh_add_fpm_config --phpversion=$phpversion --usage=$fpm_usage --footprint=$fpm_footprint

#=================================================
# NGINX CONFIGURATION
#=================================================
ynh_script_progression --message="Upgrading NGINX web server configuration..."

# Create a dedicated NGINX config
ynh_add_nginx_config

Expand Down