mirror of
https://github.com/elyby/accounts.git
synced 2024-12-29 16:40:25 +05:30
10 lines
285 B
Bash
10 lines
285 B
Bash
#!/bin/bash
|
|
|
|
set -e
|
|
set -x
|
|
|
|
# first, if the /var/lib/mysql directory is empty, unpack it from our predefined db
|
|
[ "$(ls -A /var/lib/mysql)" ] && echo "Running with existing database in /var/lib/mysql" || ( echo 'Populate initial db'; tar xpzvf default_mysql.tar.gz )
|
|
|
|
/usr/sbin/mysqld
|