Skip to content

Commit

Permalink
Merge pull request #5 from LibreCodeCoop/vitormattos-patch-1
Browse files Browse the repository at this point in the history
Update entrypoint.sh
  • Loading branch information
vitormattos committed Apr 11, 2022
2 parents 4ab5654 + a302481 commit b321eb4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion .docker/app/entrypoint.sh
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
#!/bin/bash
. `pwd`/../.env
php /var/www/scripts/wait-for-db.php
if [ ! -d ".git" ]; then
git clone --progress --single-branch --depth 1 --branch "${VERSION_NEXTCLOUD}" --recurse-submodules -j 4 https://github.com/nextcloud/server /tmp/nextcloud
rsync -r /tmp/nextcloud/ .
mkdir data
chown -R www-data:www-data .
fi
php /var/www/scripts/wait-for-db.php
if [[ ! -f "config/config.php" && ${AUTOINSTALL} -eq 1 ]]; then
if [[ ! -z ${POSTGRES_HOST} && ! -z ${POSTGRES_DB} && ! -z ${POSTGRES_USER} && ! -z ${POSTGRES_PASSWORD} ]]; then
runuser -u www-data -- php occ maintenance:install --verbose --database=pgsql --database-name=${POSTGRES_DB} --database-host=${POSTGRES_HOST} --database-port= --database-user=${POSTGRES_USER} --database-pass=${POSTGRES_PASSWORD} --admin-user=${NEXTCLOUD_ADMIN_USER} --admin-pass=${NEXTCLOUD_ADMIN_PASSWORD} --admin-email=${NEXTCLOUD_ADMIN_EMAIL}
Expand Down

0 comments on commit b321eb4

Please sign in to comment.