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
+5 -2
View File
@@ -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
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
mkdir -p $bbsRoot
chown -R www-data:www-data $bbsRoot
gosu www-data git clone https://github.com/rhymix/rhymix.git $bbsRoot
fi