openvk/install/automated/common/autoexec
2021-05-14 19:06:35 +03:00

8 lines
425 B
Text

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