diff options
author | Quentin <quentin@deuxfleurs.fr> | 2021-08-20 17:39:07 +0200 |
---|---|---|
committer | Quentin <quentin@deuxfleurs.fr> | 2021-08-20 17:39:07 +0200 |
commit | d40c41004d0f234140f5ec9fc029f4ef6ce3f60c (patch) | |
tree | aea37ac5804b3e2c159a8ce755b6b2db002048c1 /app/seafile/build/mariadb/entrypoint.sh | |
parent | 09269e8497793f97398ace2ebe7f2b70777788c8 (diff) | |
download | infrastructure-d40c41004d0f234140f5ec9fc029f4ef6ce3f60c.tar.gz infrastructure-d40c41004d0f234140f5ec9fc029f4ef6ce3f60c.zip |
Add bagage deployment
Diffstat (limited to 'app/seafile/build/mariadb/entrypoint.sh')
-rwxr-xr-x | app/seafile/build/mariadb/entrypoint.sh | 50 |
1 files changed, 0 insertions, 50 deletions
diff --git a/app/seafile/build/mariadb/entrypoint.sh b/app/seafile/build/mariadb/entrypoint.sh deleted file mode 100755 index 1bb2f01..0000000 --- a/app/seafile/build/mariadb/entrypoint.sh +++ /dev/null @@ -1,50 +0,0 @@ -#!/bin/bash - -set -e - -cat > /etc/nslcd.conf <<EOF -# /etc/nslcd.conf -# nslcd configuration file. See nslcd.conf(5) -# for details. - -# The user and group nslcd should run as. -uid nslcd -gid nslcd - -# The location at which the LDAP server(s) should be reachable. -uri ${LDAP_URI} - -# The search base that will be used for all queries. -base ${LDAP_BASE} - -# The LDAP protocol version to use. -ldap_version ${LDAP_VERSION} - -# The DN to bind with for normal lookups. -binddn ${LDAP_BIND_DN} -bindpw ${LDAP_BIND_PW} - -# The DN used for password modifications by root. -#rootpwmoddn cn=admin,dc=example,dc=com - -# SSL options -#ssl off -#tls_reqcert never -tls_cacertfile /etc/ssl/certs/ca-certificates.crt - -# The search scope. -#scope sub -EOF - -/usr/sbin/nslcd - -chown mysql:mysql /var/lib/mysql -[ -z "$(ls -A /var/lib/mysql)" ] && mysql_install_db --user=mysql --basedir=/usr --datadir=/var/lib/mysql - -/usr/bin/mysqld_safe --skip-syslog & - -until ls /var/run/mysqld/mysqld.sock; do sleep 1; done -/usr/bin/mysqladmin -u root password ${MYSQL_PASSWORD} || true - -exec "$@" - |