1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/firefly-iii_ynh.git synced 2024-09-03 18:36:13 +02:00

Fixes in upgrade and typo in readme

This commit is contained in:
anmol26s 2020-11-19 14:41:49 +05:30
parent b389bc4616
commit b8a5dccfd4
4 changed files with 8 additions and 7 deletions

View file

@ -1,6 +1,7 @@
# Firefly III for YunoHost
[![Integration level](https://dash.yunohost.org/integration/firefly-iii.svg)](https://dash.yunohost.org/appci/app/firefly-iii) ![](https://ci-apps.yunohost.org/ci/badges/firefly-iii.status.svg) ![](https://ci-apps.yunohost.org/ci/badges/firefly-iii.maintain.svg)
[![Install Firefly III with YunoHost](https://install-app.yunohost.org/install-with-yunohost.png)](https://install-app.yunohost.org/?app=firefly-iii)
> *This package allows you to install Firefly III quickly and simply on a YunoHost server.

View file

@ -22,18 +22,18 @@ location __PATH__/ {
location ~ '[^/]\.php$|^/update.php' {
fastcgi_split_path_info ^(.+?\.php)(/.*)$;
fastcgi_pass unix:/var/run/php/php__PHPVERSION__-fpm-__NAME__.sock;
fastcgi_index index.php;
include fastcgi_params;
fastcgi_param REMOTE_USER $remote_user;
fastcgi_param PATH_INFO $fastcgi_path_info;
fastcgi_param SCRIPT_FILENAME $request_filename;
}
# Include SSOWAT user panel.
include conf.d/yunohost_panel.conf.inc;
}
location @rewrite {
rewrite ^/(.*)$ /index.php?q=$1;
rewrite ^__PATH__/(.*)$ __PATH__/index.php?q=$1;
}

View file

@ -119,7 +119,7 @@ ynh_exec_warn_less ynh_install_composer --phpversion="$phpversion" --workdir="$f
ynh_script_progression --message="Modifying a config file..."
config="$final_path/.env"
cp -f cp ../conf/.env "$config"
cp -f ../conf/.env "$config"
ynh_replace_string --match_string="SomeRandomStringOf32CharsExactly" --replace_string="$random_key" --target_file="$config"
ynh_replace_string --match_string="fireflyiiidb" --replace_string="127.0.0.1" --target_file="$config"

View file

@ -164,7 +164,7 @@ ynh_exec_warn_less ynh_install_composer --phpversion="$phpversion" --workdir="$f
#=================================================
# MODIFY A CONFIG FILE
#=================================================
#ynh_script_progression --message="Modifying a config file..."
ynh_script_progression --message="Modifying a config file..."
config="$final_path/.env"
ynh_backup_if_checksum_is_different --file="$config"
@ -180,7 +180,7 @@ ynh_replace_string --match_string="MAIL_HOST=null" --replace_string="MAIL_HOST=1
ynh_replace_string --match_string="MAIL_PORT=2525" --replace_string="MAIL_PORT=25" --target_file="$config"
ynh_replace_string --match_string="mail@example.com" --replace_string="$email" --target_file="$config"
ynh_replace_string --match_string="changeme@example.com" --replace_string="$app@$domain" --target_file="$config"
# These helpers are for reference to impliment remove them once app gets support for LDAP. Put them directly in .env
# These helpers are for reference.Remove them once app gets support for LDAP. Put them directly in .env
# ynh_replace_string --match_string="ADLDAP_CONTROLLERS=" --replace_string="ADLDAP_CONTROLLERS=127.0.0.1" --target_file="$config"
# ynh_replace_string --match_string='ADLDAP_BASEDN=""' --replace_string='ADLDAP_BASEDN="dc=yunohost,dc=org"' --target_file="$config"
@ -204,7 +204,7 @@ pushd "$final_path"
php$phpversion artisan migrate:refresh --seed
php$phpversion artisan firefly-iii:upgrade-database
php$phpversion artisan passport:install
php artisan cache:clear
php$phpversion artisan cache:clear
#rm -rf "$final_path/bootstrap/cache/*"