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

More tweaking to try to match the official doc..

This commit is contained in:
Alexandre Aubin 2024-04-25 12:00:42 +02:00
parent 4fdbe3ad36
commit e783276982
2 changed files with 12 additions and 13 deletions

View file

@ -47,10 +47,10 @@ chown $app "$install_dir/.env"
ynh_script_progression --message="Deploying..." ynh_script_progression --message="Deploying..."
pushd "$install_dir" pushd "$install_dir"
php$phpversion artisan firefly-iii:upgrade-database php$phpversion artisan firefly-iii:upgrade-database
php$phpversion artisan firefly-iii:correct-database php$phpversion artisan firefly-iii:correct-database
php$phpversion artisan firefly-iii:report-integrity php$phpversion artisan firefly-iii:report-integrity
php$phpversion artisan passport:keys || true php$phpversion artisan firefly-iii:laravel-passport-keys
popd popd
#================================================= #=================================================

View file

@ -12,7 +12,7 @@ timezone="$(cat /etc/timezone)"
ynh_script_progression --message="Upgrading source files..." ynh_script_progression --message="Upgrading source files..."
ynh_setup_source --dest_dir="$install_dir" --keep=".env storage/upload storage/export" ynh_setup_source --dest_dir="$install_dir" --keep=".env storage"
chmod -R o-rwx "$install_dir" chmod -R o-rwx "$install_dir"
chown -R $app:www-data "$install_dir" chown -R $app:www-data "$install_dir"
@ -21,7 +21,7 @@ chmod -R 775 $install_dir/storage
#================================================= #=================================================
# PHP-FPM CONFIGURATION # PHP-FPM CONFIGURATION
#================================================= #=================================================
ynh_script_progression --message="Upgrading PHP-FPM configuration..." ynh_script_progression --message="Upgrading system configurations related to $app..."
ynh_add_fpm_config ynh_add_fpm_config
@ -34,25 +34,24 @@ ynh_add_nginx_config
#================================================= #=================================================
# UPDATE A CONFIG FILE # UPDATE A CONFIG FILE
#================================================= #=================================================
# ynh_script_progression --message="Updating a configuration file..." ynh_script_progression --message="Updating $app configuration..."
# ynh_add_config --template=".env" --destination="$install_dir/.env" ynh_add_config --template=".env" --destination="$install_dir/.env"
# chmod 400 "$install_dir/.env" chmod 400 "$install_dir/.env"
# chown $app "$install_dir/.env" chown $app "$install_dir/.env"
#================================================= #=================================================
# DEPLOYMENT # DEPLOYMENT
#================================================= #=================================================
ynh_script_progression --message="Deploying..." ynh_script_progression --message="Upgrading database..."
pushd "$install_dir" pushd "$install_dir"
ynh_secure_remove --file="bootstrap/cache/*"
php$phpversion artisan migrate --seed php$phpversion artisan migrate --seed
php$phpversion artisan firefly-iii:decrypt-all php$phpversion artisan firefly-iii:decrypt-all
php$phpversion artisan cache:clear php$phpversion artisan cache:clear
php$phpversion artisan firefly-iii:upgrade-database php$phpversion artisan firefly-iii:upgrade-database
php$phpversion artisan passport:keys || true php$phpversion artisan firefly-iii:laravel-passport-keys
php$phpversion artisan cache:clear php$phpversion artisan cache:clear
popd popd