From 0e50ed90ca6235e682b69e18214d30c3e763b09c Mon Sep 17 00:00:00 2001 From: Saeed Vaziry Date: Sun, 1 Feb 2026 01:14:09 +0100 Subject: [PATCH] Fix WordPress with isolated users --- resources/views/ssh/wordpress/install.blade.php | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/resources/views/ssh/wordpress/install.blade.php b/resources/views/ssh/wordpress/install.blade.php index 0e18dfc97..c6a426bc8 100644 --- a/resources/views/ssh/wordpress/install.blade.php +++ b/resources/views/ssh/wordpress/install.blade.php @@ -1,4 +1,10 @@ -if ! curl -O https://raw.githubusercontent.com/wp-cli/builds/gh-pages/phar/wp-cli.phar; then +if [ "{{ $isIsolated }}" == "true" ]; then + cd /home/{{ $isolatedUsername }} +else + cd /tmp +fi + +if ! curl -sS -O https://raw.githubusercontent.com/wp-cli/builds/gh-pages/phar/wp-cli.phar; then echo 'VITO_SSH_ERROR' && exit 1 fi @@ -8,7 +14,7 @@ if [ "{{ $isIsolated }}" == "true" ]; then mv wp-cli.phar /home/{{ $isolatedUsername }}/bin/ - ln -s /home/{{ $isolatedUsername }}/bin/wp-cli.phar /home/{{ $isolatedUsername }}/bin/wp + ln -sf /home/{{ $isolatedUsername }}/bin/wp-cli.phar /home/{{ $isolatedUsername }}/bin/wp else if ! sudo mv wp-cli.phar /usr/local/bin/wp; then echo 'VITO_SSH_ERROR' && exit 1