finally use ynh_secure_remove correctly
This commit is contained in:
+9
-3
@@ -133,9 +133,15 @@ ynh_script_progression --message="Upgrading the database..."
|
|||||||
pushd "$final_path"
|
pushd "$final_path"
|
||||||
# Clear caches
|
# Clear caches
|
||||||
# https://github.com/invoiceninja/invoiceninja/issues/7397
|
# https://github.com/invoiceninja/invoiceninja/issues/7397
|
||||||
ynh_secure_remove --file=bootstrap/cache/*
|
ynh_secure_remove --file=$final_path/bootstrap/cache/
|
||||||
ynh_secure_remove --file=storage/framework/cache/*
|
ynh_secure_remove --file=$final_path/storage/framework/cache/
|
||||||
ynh_secure_remove --file=storage/framework/sessions/*
|
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
|
# Run the database migrations
|
||||||
php$phpversion artisan migrate --force --no-interaction --verbose
|
php$phpversion artisan migrate --force --no-interaction --verbose
|
||||||
|
|||||||
Reference in New Issue
Block a user