nginx 구성에 맞게 변경
- 기본 board로 rhymix 추가
This commit is contained in:
Executable
+16
@@ -0,0 +1,16 @@
|
||||
#!/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/board"
|
||||
bbsRoot=$wwwRoot
|
||||
|
||||
if [ ! -e "$bbsRoot/index.php" ]; then
|
||||
gosu www-data git clone https://github.com/rhymix/rhymix.git $bbsRoot
|
||||
fi
|
||||
|
||||
exec "$@"
|
||||
Reference in New Issue
Block a user