Commit c8b97213a7f95733ceaad0217b4131331a39977d
1 parent
8f8b5dd0
Exists in
master
ajout un script de dém
Showing
1 changed file
with
16 additions
and
0 deletions
Show diff stats
@@ -0,0 +1,16 @@ | @@ -0,0 +1,16 @@ | ||
1 | +#!/usr/bin/env bash | ||
2 | + | ||
3 | +# script executé au démarrage du docker | ||
4 | + | ||
5 | +service postgresql restart | ||
6 | + | ||
7 | +for rep in $(find /var/gavo/inputs/[0-9a-zA-Z]* -maxdepth 0 -type d) | ||
8 | +do | ||
9 | + su - dachsroot dachs imp /var/gavo/inputs/${rep}/q.rd | ||
10 | + su - dachsroot dachs pub //services | ||
11 | + su - dachsroot dachs pub //tap | ||
12 | + su - dachsroot dachs pub /var/gavo/inputs/${rep}/q.rd | ||
13 | +done | ||
14 | +gavo serve restart | ||
15 | + | ||
16 | +service apache2 restart |