fix: ownership bug

This commit is contained in:
2021-08-22 01:53:35 +09:00
parent 11399aeef7
commit 83411de473
2 changed files with 9 additions and 2 deletions
+4
View File
@@ -11,6 +11,8 @@ samRoot="$wwwRoot/html/sam"
imageRoot="$wwwRoot/html/image"
if [ ! -f "$samRoot/index.php" ]; then
echo generate $samRoot
mkdir -p $samRoot
chown -R www-data:www-data $wwwRoot
gosu www-data git clone $gameGitPath $samRoot
fi
@@ -21,6 +23,8 @@ if [ "$HIDCHE_IMAGE_USE_INTERNAL" = "yes" ] && [ ! -d "$imageRoot" ]; then
gosu www-data chmod 600 /var/www/.ssh/known_hosts
fi
echo generate $imageRoot
mkdir -p $imageRoot
chown -R www-data:www-data $imageRoot
gosu www-data git clone $imgGitPath $imageRoot
fi