first commit
Some checks failed
Vulhub Format Check and Lint / format-check (push) Has been cancelled
Vulhub Format Check and Lint / markdown-check (push) Has been cancelled
Vulhub Docker Image CI / longtime-images-test (push) Has been cancelled
Vulhub Docker Image CI / images-test (push) Has been cancelled
Some checks failed
Vulhub Format Check and Lint / format-check (push) Has been cancelled
Vulhub Format Check and Lint / markdown-check (push) Has been cancelled
Vulhub Docker Image CI / longtime-images-test (push) Has been cancelled
Vulhub Docker Image CI / images-test (push) Has been cancelled
This commit is contained in:
13
postgres/CVE-2018-1058/init.sh
Normal file
13
postgres/CVE-2018-1058/init.sh
Normal file
@@ -0,0 +1,13 @@
|
||||
#!/bin/bash
|
||||
|
||||
set -ex
|
||||
|
||||
psql -v ON_ERROR_STOP=1 --username "$POSTGRES_USER" <<-EOSQL
|
||||
CREATE USER "vulhub" WITH PASSWORD 'vulhub';
|
||||
CREATE DATABASE "vulhub" OWNER "vulhub";
|
||||
GRANT ALL PRIVILEGES ON DATABASE "vulhub" to "vulhub";
|
||||
EOSQL
|
||||
|
||||
psql -v ON_ERROR_STOP=1 --username "$POSTGRES_USER" vulhub <<-EOSQL
|
||||
CREATE EXTENSION IF NOT EXISTS dblink;
|
||||
EOSQL
|
Reference in New Issue
Block a user