mirror of
https://github.com/YunoHost-Apps/invoiceninja5_ynh.git
synced 2024-09-03 19:26:23 +02:00
finally use ynh_secure_remove correctly
This commit is contained in:
parent
793cda0373
commit
4c1d3398f5
1 changed files with 9 additions and 3 deletions
|
@ -133,9 +133,15 @@ ynh_script_progression --message="Upgrading the database..."
|
|||
pushd "$final_path"
|
||||
# Clear caches
|
||||
# https://github.com/invoiceninja/invoiceninja/issues/7397
|
||||
ynh_secure_remove --file=bootstrap/cache/*
|
||||
ynh_secure_remove --file=storage/framework/cache/*
|
||||
ynh_secure_remove --file=storage/framework/sessions/*
|
||||
ynh_secure_remove --file=$final_path/bootstrap/cache/
|
||||
ynh_secure_remove --file=$final_path/storage/framework/cache/
|
||||
ynh_secure_remove --file=$final_path/storage/framework/sessions/
|
||||
|
||||
mkdir -p $final_path/bootstrap/cache/ $final_path/storage/framework/cache/ $final_path/storage/framework/sessions/
|
||||
|
||||
# clear cached stuff under /app/data/storage/framework (https://github.com/laravel/framework/issues/17377)
|
||||
php$phpversion artisan view:clear
|
||||
php$phpversion artisan cache:clear
|
||||
|
||||
# Run the database migrations
|
||||
php$phpversion artisan migrate --force --no-interaction --verbose
|
||||
|
|
Loading…
Add table
Reference in a new issue