openvk/install/automated/common/autoexec

9 lines
425 B
Text
Raw Normal View History

2021-05-14 19:06:35 +03:00
cd /opt/chandler && \
mysql -p'DATABASE_PASSWORD' -e "CREATE DATABASE openvk" && \
mysql -p'DATABASE_PASSWORD' -e "CREATE DATABASE openvk_eventdb" && \
mysql -p'DATABASE_PASSWORD' openvk < install/init-db.sql && \
cd extensions/available/openvk/ && \
mysql -p'DATABASE_PASSWORD' openvk < install/init-static-db.sql && \
mysql -p'DATABASE_PASSWORD' openvk_eventdb < install/init-event-db.sql && \
systemctl enable --now httpd