mirror of
https://github.com/casjaysdevdocker/tools
synced 2025-09-20 15:57:40 -04:00
🗃️ Committing everything that changed 🗃️
applications/ configs/ lists/ wwwroot/
This commit is contained in:
8
applications/postgres/scripts/commands.sh
Normal file
8
applications/postgres/scripts/commands.sh
Normal file
@@ -0,0 +1,8 @@
|
||||
SERVICE_USER="postgres" # execute command as another user
|
||||
EXEC_CMD_BIN="postgres" # command to execute
|
||||
EXEC_CMD_ARGS="-D $DATABASE_DIR" # command arguments
|
||||
|
||||
if [ ! -s "$DATABASE_DIR/PG_VERSION" ]; then
|
||||
sudo -u $user initdb --username="$user" -A md5 --pwfile="${ROOT_FILE_PREFIX}/${SERVICE_NAME}_pass" -D "$DATABASE_DIR" >/dev/null
|
||||
fi
|
||||
chmod -f 0750 "$DATABASE_DIR"
|
Reference in New Issue
Block a user