mirror of
https://github.com/hoellen/docker-nextcloud.git
synced 2025-04-20 04:29:34 +00:00
Merge 40b2779cfbbf0e4614c5ee81bb47c42ec789235e into 2334b3e2314a899a326967570c6e68ded6d474b2
This commit is contained in:
commit
df325e20d8
@ -15,6 +15,15 @@ if [ "$PHP_HARDENING" == "true" ] && [ ! -f /usr/local/etc/php/conf.d/snuffleupa
|
|||||||
cp /usr/local/etc/php/snuffleupagus/* /usr/local/etc/php/conf.d
|
cp /usr/local/etc/php/snuffleupagus/* /usr/local/etc/php/conf.d
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
# Check if database is available
|
||||||
|
if [ ${DB_TYPE} != "sqlite3" ]; then
|
||||||
|
until nc -z "${DB_HOST:-nextcloud-db}" "${DB_PORT:-3306}"
|
||||||
|
do
|
||||||
|
echo "waiting for the database container..."
|
||||||
|
sleep 1
|
||||||
|
done
|
||||||
|
fi
|
||||||
|
|
||||||
# If new install, run setup
|
# If new install, run setup
|
||||||
if [ ! -f /nextcloud/config/config.php ]; then
|
if [ ! -f /nextcloud/config/config.php ]; then
|
||||||
touch /nextcloud/config/CAN_INSTALL
|
touch /nextcloud/config/CAN_INSTALL
|
||||||
|
@ -55,14 +55,6 @@ cat >> /nextcloud/config/autoconfig.php <<EOF;
|
|||||||
?>
|
?>
|
||||||
EOF
|
EOF
|
||||||
|
|
||||||
if [ ${DB_TYPE} != "sqlite3" ]; then
|
|
||||||
until nc -z "${DB_HOST:-nextcloud-db}" "${DB_PORT:-3306}"
|
|
||||||
do
|
|
||||||
echo "waiting for the database container..."
|
|
||||||
sleep 1
|
|
||||||
done
|
|
||||||
fi
|
|
||||||
|
|
||||||
echo "Starting automatic configuration..."
|
echo "Starting automatic configuration..."
|
||||||
# Execute setup
|
# Execute setup
|
||||||
(cd /nextcloud; php index.php &>/dev/null)
|
(cd /nextcloud; php index.php &>/dev/null)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user