From 7294888cc8d6269c32e9c3f41d3016bcb5fd0fe0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?E=CC=81ric=20Gaspar?= <46165813+ericgaspar@users.noreply.github.com> Date: Mon, 12 Jun 2023 10:21:07 +0200 Subject: [PATCH] fix --- scripts/_common.sh | 2 +- scripts/upgrade | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/scripts/_common.sh b/scripts/_common.sh index 0209a1b..76dfd66 100644 --- a/scripts/_common.sh +++ b/scripts/_common.sh @@ -6,7 +6,7 @@ php_exec() { (cd "$install_dir" && ynh_exec_as "$app" \ - php${YNH_PHP_VERSION} "$install_dir/bin/console" --no-interaction --env=prod "$@") + php$phpversion "$install_dir/bin/console" --no-interaction --env=prod "$@") } #================================================= diff --git a/scripts/upgrade b/scripts/upgrade index 9a9fee2..3d299ff 100644 --- a/scripts/upgrade +++ b/scripts/upgrade @@ -31,6 +31,8 @@ then mkdir "$install_dir/var/cache" fi +chown -R $app:www-data "$install_dir" + #================================================= # REAPPLY SYSTEM CONFIGURATIONS #=================================================