mirror of
https://github.com/YunoHost-Apps/firefly-iii_ynh.git
synced 2024-09-03 18:36:13 +02:00
Updated to version 4.7.7
This commit is contained in:
parent
25eb81d152
commit
192498aed0
9 changed files with 37 additions and 37 deletions
|
@ -1,13 +1,13 @@
|
|||
<p align="center"><img src="https://firefly-iii.org/static/img/logo-small-new.png"></p>
|
||||
|
||||
# Firefly III v4.7.6.2 for YunoHost
|
||||
# Firefly III v4.7.7 for YunoHost
|
||||
|
||||
[![Integration level](https://dash.yunohost.org/integration/Firefly-III.svg)](https://ci-apps.yunohost.org/jenkins/job/firefly-iii%20%28Community%29/lastBuild/consoleFull)
|
||||
|
||||
[![Install Firefly III with YunoHost](https://install-app.yunohost.org/install-with-yunohost.png)](https://install-app.yunohost.org/?app=firefly-iii)<br><br>
|
||||
|
||||
|
||||
*Please note that this app will install PHP 7.1*
|
||||
*Please note that this app will install PHP 7.2*
|
||||
|
||||
## Introduction
|
||||
"Firefly III" is a (self-hosted) manager for your personal finances. It can help you keep track of your expenses and income, so you can spend less and save more. Firefly III supports the use of budgets, categories and tags. It can import data from external sources and it has many neat financial reports available. You can [read all about it in the main repository](https://github.com/firefly-iii/firefly-iii) and in the [official documentation](https://firefly-iii.readthedocs.io/en/latest/).
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
SOURCE_URL=https://github.com/firefly-iii/firefly-iii/archive/4.7.6.2.tar.gz
|
||||
SOURCE_SUM=17443d94b58169c0e45c586f1fa9b948559d28e1e571f884996714aeb3ba1ece
|
||||
SOURCE_URL=https://github.com/firefly-iii/firefly-iii/archive/4.7.7.tar.gz
|
||||
SOURCE_SUM=16c79531dcc202e125bd317b7c672d719346d7d84a4d8fd56704d5119abbcf48
|
||||
SOURCE_SUM_PRG=sha256sum
|
||||
SOURCE_FORMAT=tar.gz
|
||||
SOURCE_IN_SUBDIR=true
|
||||
|
|
|
@ -6,7 +6,7 @@
|
|||
"en": "Firefly III is a self-hosted financial manager.",
|
||||
"fr": "Firefly III est un gestionnaire de finances personnelles."
|
||||
},
|
||||
"version": "4.7.6.2",
|
||||
"version": "4.7.7",
|
||||
"url": "https://firefly-iii.org/",
|
||||
"license": "GPL v3",
|
||||
"maintainer": {
|
||||
|
|
|
@ -15,10 +15,10 @@ ynh_delete_file_checksum () {
|
|||
# Create a dedicated php-fpm config
|
||||
#
|
||||
# usage: ynh_add_fpm_config
|
||||
ynh_add_fpm7.1_config () {
|
||||
ynh_add_fpm7.2_config () {
|
||||
# Configure PHP-FPM 7.1 by default
|
||||
local fpm_config_dir="/etc/php/7.1/fpm"
|
||||
local fpm_service="php7.1-fpm"
|
||||
local fpm_config_dir="/etc/php/7.2/fpm"
|
||||
local fpm_service="php7.2-fpm"
|
||||
ynh_app_setting_set $app fpm_config_dir "$fpm_config_dir"
|
||||
ynh_app_setting_set $app fpm_service "$fpm_service"
|
||||
finalphpconf="$fpm_config_dir/pool.d/$app.conf"
|
||||
|
@ -44,7 +44,7 @@ ynh_add_fpm7.1_config () {
|
|||
# Remove the dedicated php-fpm config
|
||||
#
|
||||
# usage: ynh_remove_fpm7.1_config
|
||||
ynh_remove_fpm7.1_config () {
|
||||
ynh_remove_fpm7.2_config () {
|
||||
local fpm_config_dir=$(ynh_app_setting_get $app fpm_config_dir)
|
||||
local fpm_service=$(ynh_app_setting_get $app fpm_service)
|
||||
ynh_secure_remove "$fpm_config_dir/pool.d/$app.conf"
|
||||
|
@ -79,7 +79,7 @@ exec_composer() {
|
|||
shift 1
|
||||
|
||||
COMPOSER_HOME="${WORKDIR}/.composer" \
|
||||
sudo /usr/bin/php7.1 "${WORKDIR}/composer.phar" $@ \
|
||||
sudo /usr/bin/php7.2 "${WORKDIR}/composer.phar" $@ \
|
||||
-d "${WORKDIR}" --quiet --no-interaction
|
||||
}
|
||||
|
||||
|
@ -92,7 +92,7 @@ init_composer() {
|
|||
# install composer
|
||||
curl -sS https://getcomposer.org/installer \
|
||||
| COMPOSER_HOME="${DESTDIR}/.composer" \
|
||||
sudo /usr/bin/php7.1 -- --quiet --install-dir="$DESTDIR" \
|
||||
sudo /usr/bin/php7.2 -- --quiet --install-dir="$DESTDIR" \
|
||||
|| ynh_die "Unable to install Composer"
|
||||
|
||||
# update dependencies to create composer.lock
|
||||
|
@ -117,7 +117,7 @@ ynh_install_php7 () {
|
|||
echo "deb https://packages.sury.org/php/ $(lsb_release -sc) main" | sudo tee /etc/apt/sources.list.d/php7.list
|
||||
|
||||
ynh_package_update
|
||||
ynh_install_app_dependencies php7.1 php7.1-zip php7.1-fpm php7.1-mysql php7.1-xml php7.1-intl php7.1-mbstring php7.1-gd php7.1-curl php7.1-bcmath php7.1-opcache
|
||||
ynh_install_app_dependencies php7.2 php7.2-zip php7.2-fpm php7.2-mysql php7.2-xml php7.2-intl php7.2-mbstring php7.2-gd php7.2-curl php7.2-bcmath php7.2-opcache
|
||||
sudo update-alternatives --install /usr/bin/php php /usr/bin/php5 70
|
||||
}
|
||||
|
||||
|
@ -125,5 +125,5 @@ ynh_remove_php7 () {
|
|||
sudo rm -f /etc/apt/sources.list.d/php7.list
|
||||
sudo apt-key del 4096R/89DF5277
|
||||
sudo apt-key del 2048R/11A06851
|
||||
ynh_remove_app_dependencies php7.1 php7.1-zip php7.1-fpm php7.1-mysql php7.1-xml php7.1-intl php7.1-mbstring php7.1-gd php7.1-curl php7.1-bcmath php7.1-opcache
|
||||
ynh_remove_app_dependencies php7.2 php7.2-zip php7.2-fpm php7.2-mysql php7.2-xml php7.2-intl php7.2-mbstring php7.2-gd php7.2-curl php7.2-bcmath php7.2-opcache
|
||||
}
|
||||
|
|
|
@ -49,7 +49,7 @@ ynh_backup "/etc/nginx/conf.d/$domain.d/$app.conf"
|
|||
# BACKUP THE PHP-FPM CONFIGURATION
|
||||
#=================================================
|
||||
|
||||
ynh_backup "/etc/php/7.1/fpm/pool.d/$app.conf"
|
||||
ynh_backup "/etc/php/7.2/fpm/pool.d/$app.conf"
|
||||
|
||||
#=================================================
|
||||
# BACKUP THE MYSQL DATABASE
|
||||
|
|
|
@ -102,11 +102,11 @@ ynh_add_nginx_config
|
|||
ynh_system_user_create $app
|
||||
|
||||
#=================================================
|
||||
# PHP-FPM 7.1 CONFIGURATION
|
||||
# PHP-FPM 7.2 CONFIGURATION
|
||||
#=================================================
|
||||
|
||||
# Create a dedicated php-fpm7.1 config
|
||||
ynh_add_fpm7.1_config
|
||||
ynh_add_fpm7.2_config
|
||||
|
||||
#=================================================
|
||||
# SPECIFIC SETUP
|
||||
|
@ -128,13 +128,13 @@ ynh_replace_string "yunomail" "$email" "$final_path/.env"
|
|||
ynh_replace_string "yunodomain" "$domain" "$final_path/.env"
|
||||
|
||||
init_composer $final_path
|
||||
cd $final_path && sudo /usr/bin/php7.1 artisan config:clear
|
||||
cd $final_path && sudo /usr/bin/php7.2 artisan config:clear
|
||||
|
||||
db_name=$(ynh_sanitize_dbid $app)
|
||||
|
||||
# setup application config
|
||||
cd $final_path && sudo /usr/bin/php7.1 artisan -q :refresh --seed --force
|
||||
cd $final_path && sudo /usr/bin/php7.1 artisan passport:install --force
|
||||
cd $final_path && sudo /usr/bin/php7.2 artisan -q :refresh --seed --force
|
||||
cd $final_path && sudo /usr/bin/php7.2 artisan passport:install --force
|
||||
|
||||
#=================================================
|
||||
# SETUP APPLICATION PERMISSIONS
|
||||
|
@ -168,7 +168,7 @@ fi
|
|||
#=================================================
|
||||
# RELOAD NGINX
|
||||
#=================================================
|
||||
systemctl reload php7.1-fpm
|
||||
systemctl reload php7.2-fpm
|
||||
systemctl reload nginx
|
||||
# Set default php to php5 or php7.0
|
||||
if [ "$(lsb_release --codename --short)" == "jessie" ]; then
|
||||
|
|
|
@ -46,7 +46,7 @@ ynh_remove_nginx_config
|
|||
#=================================================
|
||||
|
||||
# Remove the dedicated php-fpm config
|
||||
ynh_remove_fpm7.1_config
|
||||
ynh_remove_fpm7.2_config
|
||||
|
||||
#=================================================
|
||||
# SPECIFIC REMOVE
|
||||
|
|
|
@ -92,17 +92,17 @@ chown -R $app: $final_path
|
|||
# RESTORE THE PHP-FPM CONFIGURATION
|
||||
#=================================================
|
||||
|
||||
ynh_restore_file "/etc/php/7.1/fpm/pool.d/$app.conf"
|
||||
ynh_restore_file "/etc/php/7.2/fpm/pool.d/$app.conf"
|
||||
|
||||
#=================================================
|
||||
# SPECIFIC UPGRADE
|
||||
#=================================================
|
||||
init_composer $final_path
|
||||
cd $final_path && sudo /usr/bin/php7.1 artisan migrate --env=production --force
|
||||
cd $final_path && sudo /usr/bin/php7.1 artisan cache:clear
|
||||
cd $final_path && sudo /usr/bin/php7.1 artisan firefly:upgrade-database
|
||||
cd $final_path && sudo /usr/bin/php7.1 artisan firefly:verify
|
||||
cd $final_path && sudo /usr/bin/php7.1 artisan passport:install
|
||||
cd $final_path && sudo /usr/bin/php7.2 artisan migrate --env=production --force
|
||||
cd $final_path && sudo /usr/bin/php7.2 artisan cache:clear
|
||||
cd $final_path && sudo /usr/bin/php7.2 artisan firefly:upgrade-database
|
||||
cd $final_path && sudo /usr/bin/php7.2 artisan firefly:verify
|
||||
cd $final_path && sudo /usr/bin/php7.2 artisan passport:install
|
||||
|
||||
#=================================================
|
||||
# GENERIC FINALIZATION
|
||||
|
@ -110,7 +110,7 @@ cd $final_path && sudo /usr/bin/php7.1 artisan passport:install
|
|||
# RELOAD NGINX AND PHP-FPM
|
||||
#=================================================
|
||||
|
||||
systemctl reload php7.1-fpm
|
||||
systemctl reload php7.2-fpm
|
||||
systemctl reload nginx
|
||||
# Set default php to php5 or php7.0
|
||||
if [ "$(lsb_release --codename --short)" == "jessie" ]; then
|
||||
|
|
|
@ -118,11 +118,11 @@ ynh_add_nginx_config
|
|||
ynh_system_user_create $app
|
||||
|
||||
#=================================================
|
||||
# PHP-FPM 7.1 CONFIGURATION
|
||||
# PHP-FPM 7.2 CONFIGURATION
|
||||
#=================================================
|
||||
|
||||
# Create a dedicated php-fpm7.1 config
|
||||
ynh_add_fpm7.1_config
|
||||
ynh_add_fpm7.2_config
|
||||
|
||||
#=================================================
|
||||
# SPECIFIC UPGRADE
|
||||
|
@ -144,11 +144,11 @@ ynh_replace_string "yunodomain" "$domain" "$final_path/.env"
|
|||
|
||||
|
||||
init_composer $final_path
|
||||
cd $final_path && sudo /usr/bin/php7.1 artisan migrate --env=production --force
|
||||
cd $final_path && sudo /usr/bin/php7.1 artisan cache:clear
|
||||
cd $final_path && sudo /usr/bin/php7.1 artisan firefly:upgrade-database
|
||||
cd $final_path && sudo /usr/bin/php7.1 artisan firefly:verify
|
||||
cd $final_path && sudo /usr/bin/php7.1 artisan passport:install
|
||||
cd $final_path && sudo /usr/bin/php7.2 artisan migrate --env=production --force
|
||||
cd $final_path && sudo /usr/bin/php7.2 artisan cache:clear
|
||||
cd $final_path && sudo /usr/bin/php7.2 artisan firefly:upgrade-database
|
||||
cd $final_path && sudo /usr/bin/php7.2 artisan firefly:verify
|
||||
cd $final_path && sudo /usr/bin/php7.2 artisan passport:install
|
||||
|
||||
# Verify the checksum and backup the file if it's different
|
||||
ynh_backup_if_checksum_is_different "$final_path/.env"
|
||||
|
@ -183,9 +183,9 @@ fi
|
|||
#=================================================
|
||||
# RELOAD NGINX
|
||||
#=================================================
|
||||
systemctl reload php7.1-fpm
|
||||
systemctl reload php7.2-fpm
|
||||
systemctl reload nginx
|
||||
# Set default php to php5 or php7.0
|
||||
# Set default php to php5 or php7.2
|
||||
if [ "$(lsb_release --codename --short)" == "jessie" ]; then
|
||||
update-alternatives --set php /usr/bin/php5
|
||||
else
|
||||
|
|
Loading…
Reference in a new issue