mirror of
https://github.com/vitodeploy/vito.git
synced 2025-07-08 01:12:34 +00:00
WordPress Deployment Fix (#441)
* Resolved Issue with WordPress * Fix for Vito User
This commit is contained in:
@ -15,7 +15,7 @@ public function install(Site $site): void
|
||||
$this->getScript('install.sh', [
|
||||
'path' => $site->path,
|
||||
'domain' => $site->domain,
|
||||
'is_isolated' => $site->isIsolated(),
|
||||
'is_isolated' => $site->isIsolated() ? 'true' : 'false',
|
||||
'isolated_username' => $site->user,
|
||||
'db_name' => $site->type_data['database'],
|
||||
'db_user' => $site->type_data['database_user'],
|
||||
|
@ -7,11 +7,10 @@ if ! chmod +x wp-cli.phar; then
|
||||
fi
|
||||
|
||||
if [ "__is_isolated__" == "true" ]; then
|
||||
if ! mv wp-cli.phar /home/__isolated_username__/bin/wp; then
|
||||
echo 'VITO_SSH_ERROR' && exit 1
|
||||
fi
|
||||
mv wp-cli.phar /home/__isolated_username__/bin/
|
||||
ln -s /home/__isolated_username__/bin/wp-cli.phar /home/__isolated_username__/bin/wp
|
||||
else
|
||||
if ! mv wp-cli.phar /usr/local/bin/wp; then
|
||||
if ! sudo mv wp-cli.phar /usr/local/bin/wp; then
|
||||
echo 'VITO_SSH_ERROR' && exit 1
|
||||
fi
|
||||
fi
|
||||
|
Reference in New Issue
Block a user