mirror of
https://github.com/Security-Onion-Solutions/securityonion.git
synced 2025-12-06 09:12:45 +01:00
8 lines
337 B
Bash
8 lines
337 B
Bash
#!/bin/sh
|
|
|
|
# {%- set MYSQLPASS = salt['pillar.get']('secrets:mysql', None) %}
|
|
|
|
default_salt_dir=/opt/so/saltstack/default
|
|
|
|
docker cp $default_salt_dir/salt/playbook/files/OLD_playbook_db_init.sql so-mysql:/tmp/playbook_db_init.sql
|
|
docker exec so-mysql /bin/bash -c "/usr/bin/mysql -b -uroot -p{{MYSQLPASS}} < /tmp/playbook_db_init.sql" |