diff --git a/Config/rector.php b/Config/rector.php index 6b3671a..bea5caf 100644 --- a/Config/rector.php +++ b/Config/rector.php @@ -15,11 +15,15 @@ use Rector\EarlyReturn\Rector\Return_\ReturnBinaryAndToEarlyReturnRector; use Rector\Set\ValueObject\SetList; return static function (RectorConfig $rectorConfig): void { - $rectorConfig->paths([ - __DIR__ . '/Model', - __DIR__ . '/Modules', - __DIR__ . '/phpOMS', - ]); + if (\is_dir(__DIR__ . '/phpOMS')) { + $rectorConfig->paths([ + __DIR__ . '/Model', + __DIR__ . '/Modules', + __DIR__ . '/phpOMS', + ]); + } else { + $rectorConfig->paths([__DIR__]); + } // register a single rule $rectorConfig->rule(InlineConstructorDefaultToPropertyRector::class); diff --git a/Helper/serverInstall.sh b/Helper/serverInstall.sh index 84bcce1..8b95bb2 100644 --- a/Helper/serverInstall.sh +++ b/Helper/serverInstall.sh @@ -10,7 +10,7 @@ export PROMPT_COMMAND='echo "$(date "+%Y-%m-%d.%H:%M:%S") $(pwd) $(history 1)" > apt-get update apt-get upgrade -apt-get install git snapd ufw software-properties-common +apt-get install git git-lfs snapd ufw software-properties-common # Security @@ -601,9 +601,8 @@ sudo -u www-data git submodule foreach "git checkout develop || true" chown -R www-data /var/www # crontab www-data -# * 4 * * * git -C /var/www/html/jingga_demo submodule foreach git pull; git -C /var/www/html/jingga_demo/setupDemo git pull; /var/www/html/jingga_demo/setupDemo/setup.php; pkill -9 -f wkhtmltoimage; -# * 2 * * * /var/www/html/tmrank/scripts/run.sh -# 0 2 * * * /var/www/html/tmrank/scripts/run.sh > /var/www/html/tmrank/test.log +# * 2 * * * git -C /var/www/html/jingga_demo submodule foreach git pull; git -C /var/www/html/jingga_demo/setupDemo git pull; /var/www/html/jingga_demo/setupDemo/setup.php; pkill -9 -f wkhtmltoimage; +# 0 1 * * * /var/www/html/tmrank/scripts/run.sh > /var/www/html/tmrank/test.log # crontab root # 0 0 1 * * certbot renew --quiet \ No newline at end of file