1
0
Fork 0
mirror of https://github.com/Eggbertx/gochan.git synced 2025-08-05 00:26:23 -07:00
gochan/docker/startup.sh

22 lines
No EOL
378 B
Bash
Executable file

#!/bin/sh
cd /opt/gochan
linkwww() {
if [ ! -L /var/www/gochan/$1 ]; then
ln -sv /opt/gochan/html/$1 /var/www/gochan/
fi
}
linkwww css
linkwww error
linkwww js
linkwww static
linkwww favicon.png
linkwww firstrun.html
if [ "$DBTYPE" != "sqlite3" ]; then
echo "pinging database $DBHOST, DBTYPE: '$DBTYPE'"
./docker/wait-for.sh "$DBHOST" -t 30
fi
gochan