config en cours, bloque sur composer et son utilisation du proxy

This commit is contained in:
2024-06-12 14:35:18 +02:00
commit c2ddfbcd22
137 changed files with 12768 additions and 0 deletions

View File

@@ -0,0 +1,14 @@
#!/usr/bin/env bash
DB=$1;
postgres=$(pidof postgres)
if [ -z "$postgres" ]
then
# Skip Creating postgres database
echo "We didn't find a PID for postgres, skipping \$DB creation"
else
if ! su postgres -c "psql $DB -c '\q' 2>/dev/null"; then
su postgres -c "createdb -O homestead '$DB'"
fi
fi