nginx 구성에 맞게 변경
- 기본 board로 rhymix 추가
This commit is contained in:
Executable
+27
@@ -0,0 +1,27 @@
|
||||
#!/bin/bash
|
||||
set -euxo pipefail
|
||||
shopt -s nullglob
|
||||
|
||||
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"
|
||||
samRoot="$wwwRoot/html/sam"
|
||||
imageRoot="$wwwRoot/html/image"
|
||||
if [ ! -f "$samRoot/index.php" ]; then
|
||||
echo generate $samRoot
|
||||
gosu www-data git clone $gameGitPath $samRoot
|
||||
fi
|
||||
|
||||
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;
|
||||
gosu www-data chmod 600 /var/www/.ssh/known_hosts
|
||||
fi
|
||||
echo generate $imageRoot
|
||||
gosu www-data git clone $imgGitPath $imageRoot
|
||||
fi
|
||||
|
||||
exec "$@"
|
||||
Reference in New Issue
Block a user