This commit is contained in:
2021-02-21 15:48:15 +09:00
parent a2b3a14384
commit 5af59498ba
4 changed files with 9 additions and 4 deletions
+1 -1
View File
@@ -14,7 +14,7 @@ if [ ! -f "$samRoot/index.php" ]; then
gosu www-data git clone $gameGitPath $samRoot
fi
if [ $HIDCHE_IMAGE_USE_INTERNAL = "yes" ] && [ ! -d "$imageRoot" ]; then
if [ "$HIDCHE_IMAGE_USE_INTERNAL" = "yes" ] && [ ! -d "$imageRoot" ]; then
if [[ "$imgGitPath" =~ ^ssh ]]; then
query=`echo "<?php \\\$a=parse_url('$imgGitPath');echo join(' ', [\\\$a['port']?'-p '.\\\$a['port']:'',\\\$a['host']]);" | php`
gosu www-data ssh-keyscan $query >> /var/www/.ssh/known_hosts 2>/dev/null;