diff --git a/content/applications/app_specific/running_postgres.md b/content/applications/app_specific/running_postgres.md index bd2747dee464c52c1cb1632141ae875f0ed88dfe..77fd824e539a3e2c17f6ae5ad3ad53b9516ed023 100644 --- a/content/applications/app_specific/running_postgres.md +++ b/content/applications/app_specific/running_postgres.md @@ -57,11 +57,12 @@ export POSTGRES_USER=$USER export POSTGRES_DB=mydb export PGDATA=$POSTGRES_HOME/db/data export POSTGRES_HOST_AUTH_METHOD=md5 -export POSTGRES_INITDB_ARGS="\-\-data-checksums" -export POSTGRES_PORT=$(shuf -i 2000-65000 -n 1) +export POSTGRES_INITDB_ARGS="--data-checksums" +export POSTGRES_PORT=$(shuf -i 2000-65000 -n 1) + echo "Postgres server running on $(hostname) on port $POSTGRES_PORT" echo "This job started at $(date +%Y-%m-%dT%T)" -echo "This job will end at $(squeue \-\-noheader -j $SLURM_JOBID -o %e) (in $(squeue \-\-noheader -j $SLURM_JOBID -o %L))" +echo "This job will end at $(squeue --noheader -j $SLURM_JOBID -o %e) (in $(squeue --noheader -j $SLURM_JOBID -o %L))" module load singularity exec singularity run -B $POSTGRES_HOME/db:/var/lib/postgresql -B $POSTGRES_HOME/run:/var/run/postgresql docker://postgres:11 -c "port=$POSTGRES_PORT" {{< /highlight >}}