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 #=================================================