Import __recycledcloud_mysql (required by wordpress type)
This commit is contained in:
parent
1465bce8cd
commit
5b8e3203a6
3 changed files with 22 additions and 0 deletions
9
type/__recycledcloud_mysql/gencode-remote
Executable file
9
type/__recycledcloud_mysql/gencode-remote
Executable file
|
@ -0,0 +1,9 @@
|
|||
#!/bin/sh
|
||||
|
||||
cat << EOF
|
||||
if [ ! -d /var/lib/mysql/mysql ]; then
|
||||
service mariadb setup
|
||||
fi
|
||||
|
||||
service mariadb start
|
||||
EOF
|
13
type/__recycledcloud_mysql/manifest
Normal file
13
type/__recycledcloud_mysql/manifest
Normal 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.
|
0
type/__recycledcloud_mysql/singleton
Normal file
0
type/__recycledcloud_mysql/singleton
Normal file
Reference in a new issue