diff --git a/conf/docker-entrypoint.sh b/conf/docker-entrypoint.sh new file mode 100644 index 0000000..3ed9c23 --- /dev/null +++ b/conf/docker-entrypoint.sh @@ -0,0 +1,16 @@ +#!/usr/bin/env bash + +# script executé au démarrage du docker + +service postgresql restart + +for rep in $(find /var/gavo/inputs/[0-9a-zA-Z]* -maxdepth 0 -type d) +do + su - dachsroot dachs imp /var/gavo/inputs/${rep}/q.rd + su - dachsroot dachs pub //services + su - dachsroot dachs pub //tap + su - dachsroot dachs pub /var/gavo/inputs/${rep}/q.rd +done +gavo serve restart + +service apache2 restart -- libgit2 0.21.2