Spaces:
Runtime error
Runtime error
Download docker/config/db-init/02_init_metasploit.sql from Erwinfr/hexstrikeai: direct link, hf CLI and curl.
- Browser
- Download file 359 Bytes
-
https://huggingface.co/spaces/Erwinfr/hexstrikeai/resolve/main/docker/config/db-init/02_init_metasploit.sql
- Command line
-
hf download hf://spaces/Erwinfr/hexstrikeai/docker/config/db-init/02_init_metasploit.sql
-
curl -L -o 02_init_metasploit.sql https://huggingface.co/spaces/Erwinfr/hexstrikeai/resolve/main/docker/config/db-init/02_init_metasploit.sql
359 Bytes
| -- Create role if missing (idempotent) | |
| DO $$ | |
| BEGIN | |
| IF NOT EXISTS (SELECT 1 FROM pg_roles WHERE rolname = 'msf') THEN | |
| CREATE ROLE msf WITH LOGIN PASSWORD 'msf'; | |
| END IF; | |
| END$$; | |
| -- Create database if missing (must be outside a transaction) | |
| SELECT 'CREATE DATABASE msf OWNER msf' | |
| WHERE NOT EXISTS (SELECT 1 FROM pg_database WHERE datname = 'msf') \gexec | |