add favicon

This commit is contained in:
virusdefender 2017-12-15 13:35:35 +08:00
parent 489e6146b1
commit 37c463d656
2 changed files with 10 additions and 3 deletions

Binary file not shown.

After

Width:  |  Height:  |  Size: 66 KiB

View File

@ -3,11 +3,19 @@
APP=/app
DATA=/data
mkdir -p $DATA/log $DATA/ssl $DATA/test_case $DATA/public/upload $DATA/public/avatar $DATA/public/website
if [ ! -f "$APP/oj/custom_settings.py" ]; then
echo SECRET_KEY=\"$(cat /dev/urandom | head -1 | md5sum | head -c 32)\" >> $APP/oj/custom_settings.py
fi
mkdir -p $DATA/log $DATA/ssl $DATA/test_case $DATA/public/upload $DATA/public/avatar
if [ ! -f "$DATA/public/avatar/default.png" ]; then
cp data/public/avatar/default.png $DATA/public/avatar
fi
if [ ! -f "$DATA/public/website/favicon.ico" ]; then
cp data/public/website/favicon.ico $DATA/public/website
fi
SSL="$DATA/ssl"
if [ ! -f "$SSL/server.key" ]; then
@ -30,6 +38,5 @@ done
echo "from options.options import SysOptions; SysOptions.judge_server_token='$JUDGE_SERVER_TOKEN'" | python manage.py shell || exit 1
cp data/public/avatar/default.png /data/public/avatar
chown -R nobody:nogroup $DATA $APP/dist
exec supervisord -c /app/deploy/supervisord.conf
exec supervisord -c /app/deploy/supervisord.conf