6
0
Fork 0

Import __recycledcloud_mysql (required by wordpress type)

This commit is contained in:
Timothée Floure 2021-01-21 16:11:46 +01:00
parent 1465bce8cd
commit 5b8e3203a6
Signed by: tfloure
GPG key ID: 4502C902C00A1E12
3 changed files with 22 additions and 0 deletions

View file

@ -0,0 +1,9 @@
#!/bin/sh
cat << EOF
if [ ! -d /var/lib/mysql/mysql ]; then
service mariadb setup
fi
service mariadb start
EOF

View file

@ -0,0 +1,13 @@
#!/bin/sh
os=$(cat "${__global:?}/explorer/os")
if [ "$os" != "alpine" ]; then
echo "This type is expected to run on Alpine Linux, not $os. Exiting." >&2
exit 1
fi
__package mariadb
__package mariadb-client
require="__package/mariadb" __start_on_boot mariadb
# See gencode-remote for service initialization.

View file