mirror of
https://github.com/elyby/accounts.git
synced 2024-11-30 10:42:16 +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
|