diff --git a/deploy.php b/deploy.php index bd7fdf7..8b7bc6f 100644 --- a/deploy.php +++ b/deploy.php @@ -20,6 +20,7 @@ // Put the env data into .env file $cmd = 'cd /var/www/site;cat /dev/null > .env;'; foreach ($env_array as $value) { + $value = addslashes($value); // The environment value may contain the double quote string $cmd .= "echo $value >> .env;"; } @@ -35,4 +36,4 @@ echo stream_get_contents($stream); -ssh2_disconnect($ssh_session); \ No newline at end of file +ssh2_disconnect($ssh_session);