fix: ownership bug
This commit is contained in:
@@ -11,6 +11,8 @@ samRoot="$wwwRoot/html/sam"
|
|||||||
imageRoot="$wwwRoot/html/image"
|
imageRoot="$wwwRoot/html/image"
|
||||||
if [ ! -f "$samRoot/index.php" ]; then
|
if [ ! -f "$samRoot/index.php" ]; then
|
||||||
echo generate $samRoot
|
echo generate $samRoot
|
||||||
|
mkdir -p $samRoot
|
||||||
|
chown -R www-data:www-data $wwwRoot
|
||||||
gosu www-data git clone $gameGitPath $samRoot
|
gosu www-data git clone $gameGitPath $samRoot
|
||||||
fi
|
fi
|
||||||
|
|
||||||
@@ -21,6 +23,8 @@ if [ "$HIDCHE_IMAGE_USE_INTERNAL" = "yes" ] && [ ! -d "$imageRoot" ]; then
|
|||||||
gosu www-data chmod 600 /var/www/.ssh/known_hosts
|
gosu www-data chmod 600 /var/www/.ssh/known_hosts
|
||||||
fi
|
fi
|
||||||
echo generate $imageRoot
|
echo generate $imageRoot
|
||||||
|
mkdir -p $imageRoot
|
||||||
|
chown -R www-data:www-data $imageRoot
|
||||||
gosu www-data git clone $imgGitPath $imageRoot
|
gosu www-data git clone $imgGitPath $imageRoot
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|||||||
@@ -6,10 +6,13 @@ cp -n /usr/local/etc/php/php.ini-production /usr/local/etc/php/php.ini
|
|||||||
ln -snf /usr/share/zoneinfo/$TZ /etc/localtime && echo $TZ > /etc/timezone
|
ln -snf /usr/share/zoneinfo/$TZ /etc/localtime && echo $TZ > /etc/timezone
|
||||||
printf "[PHP]\ndate.timezone = \"$TZ\"\n" > /usr/local/etc/php/conf.d/tzone.ini
|
printf "[PHP]\ndate.timezone = \"$TZ\"\n" > /usr/local/etc/php/conf.d/tzone.ini
|
||||||
|
|
||||||
wwwRoot="/var/www/board"
|
|
||||||
bbsRoot=$wwwRoot
|
wwwRoot="/var/www"
|
||||||
|
bbsRoot="$wwwRoot/board"
|
||||||
|
|
||||||
if [ ! -e "$bbsRoot/index.php" ]; then
|
if [ ! -e "$bbsRoot/index.php" ]; then
|
||||||
|
mkdir -p $bbsRoot
|
||||||
|
chown -R www-data:www-data $bbsRoot
|
||||||
gosu www-data git clone https://github.com/rhymix/rhymix.git $bbsRoot
|
gosu www-data git clone https://github.com/rhymix/rhymix.git $bbsRoot
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user