Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions 22/apache/entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -191,6 +191,11 @@ if expr "$1" : "apache" 1>/dev/null || [ "$1" = "php-fpm" ] || [ "${NEXTCLOUD_UP
NC_TRUSTED_DOMAIN_IDX=$(($NC_TRUSTED_DOMAIN_IDX+1))
done
fi
file_env NEXTCLOUD_AUTH_TOKEN
if [ -n "${NEXTCLOUD_AUTH_TOKEN+x}" ]; then
echo "setting auth token"
run_as "php /var/www/html/occ config:app:set serverinfo token --value $NEXTCLOUD_AUTH_TOKEN"
fi
else
echo "Please run the web-based installer on first connect!"
fi
Expand Down
5 changes: 5 additions & 0 deletions 22/fpm-alpine/entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -191,6 +191,11 @@ if expr "$1" : "apache" 1>/dev/null || [ "$1" = "php-fpm" ] || [ "${NEXTCLOUD_UP
NC_TRUSTED_DOMAIN_IDX=$(($NC_TRUSTED_DOMAIN_IDX+1))
done
fi
file_env NEXTCLOUD_AUTH_TOKEN
if [ -n "${NEXTCLOUD_AUTH_TOKEN+x}" ]; then
echo "setting auth token"
run_as "php /var/www/html/occ config:app:set serverinfo token --value $NEXTCLOUD_AUTH_TOKEN"
fi
else
echo "Please run the web-based installer on first connect!"
fi
Expand Down
5 changes: 5 additions & 0 deletions 22/fpm/entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -191,6 +191,11 @@ if expr "$1" : "apache" 1>/dev/null || [ "$1" = "php-fpm" ] || [ "${NEXTCLOUD_UP
NC_TRUSTED_DOMAIN_IDX=$(($NC_TRUSTED_DOMAIN_IDX+1))
done
fi
file_env NEXTCLOUD_AUTH_TOKEN
if [ -n "${NEXTCLOUD_AUTH_TOKEN+x}" ]; then
echo "setting auth token"
run_as "php /var/www/html/occ config:app:set serverinfo token --value $NEXTCLOUD_AUTH_TOKEN"
fi
else
echo "Please run the web-based installer on first connect!"
fi
Expand Down
5 changes: 5 additions & 0 deletions 23/apache/entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -191,6 +191,11 @@ if expr "$1" : "apache" 1>/dev/null || [ "$1" = "php-fpm" ] || [ "${NEXTCLOUD_UP
NC_TRUSTED_DOMAIN_IDX=$(($NC_TRUSTED_DOMAIN_IDX+1))
done
fi
file_env NEXTCLOUD_AUTH_TOKEN
if [ -n "${NEXTCLOUD_AUTH_TOKEN+x}" ]; then
echo "setting auth token"
run_as "php /var/www/html/occ config:app:set serverinfo token --value $NEXTCLOUD_AUTH_TOKEN"
fi
else
echo "Please run the web-based installer on first connect!"
fi
Expand Down
5 changes: 5 additions & 0 deletions 23/fpm-alpine/entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -191,6 +191,11 @@ if expr "$1" : "apache" 1>/dev/null || [ "$1" = "php-fpm" ] || [ "${NEXTCLOUD_UP
NC_TRUSTED_DOMAIN_IDX=$(($NC_TRUSTED_DOMAIN_IDX+1))
done
fi
file_env NEXTCLOUD_AUTH_TOKEN
if [ -n "${NEXTCLOUD_AUTH_TOKEN+x}" ]; then
echo "setting auth token"
run_as "php /var/www/html/occ config:app:set serverinfo token --value $NEXTCLOUD_AUTH_TOKEN"
fi
else
echo "Please run the web-based installer on first connect!"
fi
Expand Down
5 changes: 5 additions & 0 deletions 23/fpm/entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -191,6 +191,11 @@ if expr "$1" : "apache" 1>/dev/null || [ "$1" = "php-fpm" ] || [ "${NEXTCLOUD_UP
NC_TRUSTED_DOMAIN_IDX=$(($NC_TRUSTED_DOMAIN_IDX+1))
done
fi
file_env NEXTCLOUD_AUTH_TOKEN
if [ -n "${NEXTCLOUD_AUTH_TOKEN+x}" ]; then
echo "setting auth token"
run_as "php /var/www/html/occ config:app:set serverinfo token --value $NEXTCLOUD_AUTH_TOKEN"
fi
else
echo "Please run the web-based installer on first connect!"
fi
Expand Down
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -124,6 +124,7 @@ If you set any group of values (i.e. all of `MYSQL_DATABASE`, `MYSQL_USER`, `MYS

- `NEXTCLOUD_ADMIN_USER` Name of the Nextcloud admin user.
- `NEXTCLOUD_ADMIN_PASSWORD` Password for the Nextcloud admin user.
- `NEXTCLOUD_AUTH_TOKEN` Authentication token to access server info.

If you want, you can set the data directory, otherwise default value will be used.

Expand Down
5 changes: 5 additions & 0 deletions docker-entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -191,6 +191,11 @@ if expr "$1" : "apache" 1>/dev/null || [ "$1" = "php-fpm" ] || [ "${NEXTCLOUD_UP
NC_TRUSTED_DOMAIN_IDX=$(($NC_TRUSTED_DOMAIN_IDX+1))
done
fi
file_env NEXTCLOUD_AUTH_TOKEN
if [ -n "${NEXTCLOUD_AUTH_TOKEN+x}" ]; then
echo "setting auth token"
run_as "php /var/www/html/occ config:app:set serverinfo token --value $NEXTCLOUD_AUTH_TOKEN"
fi
else
echo "Please run the web-based installer on first connect!"
fi
Expand Down