Commit 1fc77250 by Tsubasa Namiki

Skip deploying when restart container

parent aa1929f7
......@@ -3,7 +3,8 @@
set -e
if [ "$1" = 'start' ]; then
# provision
# delopy
if [ ! -e /usr/share/nginx/html/restyaboard.conf ]; then
cd /tmp
curl -L -o restyaboard.tar.gz https://github.com/RestyaPlatform/board/archive/${RESTYABOARD_VERSION}.tar.gz
mkdir html && tar xzvf restyaboard.tar.gz -C html --strip-components 1
......@@ -12,7 +13,7 @@ if [ "$1" = 'start' ]; then
cp restyaboard.conf /etc/nginx/conf.d
npm install
grunt build:live
echo '*/5 * * * * php /usr/share/nginx/htmlserver/php/R/shell/cron.php' > /var/spool/cron/root
fi
# config
sed -i "s/^.*'R_DB_NAME'.*$/define('R_DB_NAME', 'restyaboard');/g" \
......@@ -25,6 +26,7 @@ if [ "$1" = 'start' ]; then
/usr/share/nginx/html/server/php/R/config.inc.php
sed -i "s/^.*'R_DB_PORT'.*$/define('R_DB_PORT', '${POSTGRES_PORT_5432_TCP_PORT}');/g" \
/usr/share/nginx/html/server/php/R/config.inc.php
echo '*/5 * * * * php /usr/share/nginx/htmlserver/php/R/shell/cron.php' > /var/spool/cron/root
# media
chmod -R go+w /usr/share/nginx/html/media
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment