Commit c4dbc02
Fix startup scripts when restarting container (#476)
`20_start-postgresql.sh` and `40_prepare_aiida.sh` scripts were broken,
as they would fail when a container was restarted.
- Delete old ${PSQL_LOGFILE}.1.gz file before trying to create a new one
- Remove stale verdi daemon pid files, which would cause the `verdi migrate` commands to fail. This is faster than `verdi daemon stop`. We suppose that the daemon is
not running when we start/restart the container.
---------
Co-authored-by: Daniel Hollas <[email protected]>1 parent c58b00f commit c4dbc02
File tree
2 files changed
+5
-1
lines changed- stack
- base-with-services/before-notebook.d
- base/before-notebook.d
2 files changed
+5
-1
lines changedLines changed: 2 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
22 | 22 | | |
23 | 23 | | |
24 | 24 | | |
25 | | - | |
| 25 | + | |
| 26 | + | |
26 | 27 | | |
27 | 28 | | |
28 | 29 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
74 | 74 | | |
75 | 75 | | |
76 | 76 | | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
77 | 80 | | |
78 | 81 | | |
79 | 82 | | |
| |||
0 commit comments