#!/usr/local/php7.3/bin/php
<?php
$full_path = $argv[1];
$cmd = `cp -a /home/www/shared/yii/$full_path/web/* .`;
$index = file_get_contents('index.php');
$index = str_replace('__DIR__', "'/home/www/shared/yii/$full_path/'", $index);
$index = str_replace('/../', "/", $index);
file_put_contents('index.php', $index);