mirror of
https://github.com/nextcloud/docker.git
synced 2025-07-23 07:38:06 +02:00
Compare commits
4 commits
d25b6013d3
...
e975c2ea62
Author | SHA1 | Date | |
---|---|---|---|
|
e975c2ea62 | ||
|
2f4de23ea1 | ||
|
f360440588 | ||
|
eeeb4edc24 |
2 changed files with 36 additions and 10 deletions
19
README.md
19
README.md
|
@ -1,3 +1,11 @@
|
|||

|
||||
[](https://github.com/nextcloud/docker/releases/)
|
||||
[](https://nextcloud.com/changelog/)
|
||||

|
||||

|
||||

|
||||

|
||||
|
||||
# What is Nextcloud?
|
||||
|
||||
A safe home for all your data. Access & share your files, calendars, contacts, mail & more from any device, on your terms.
|
||||
|
@ -19,6 +27,9 @@ The second option is a `fpm` container. It is based on the [php-fpm](https://hub
|
|||
|
||||
Most Nextcloud Server administrative matters are covered in the official [Nextcloud Admin Manual](https://docs.nextcloud.com/server/latest/admin_manual/) or [other official Nextcloud documentation](https://docs.nextcloud.com) (which are all routinely updated).
|
||||
|
||||
[](https://help.nextcloud.com/)
|
||||
[](https://help.nextcloud.com/)
|
||||
|
||||
**If you have any problems or usage questions while using the image, please ask for assistance on the [Nextcloud Community Help Forum](https://help.nextcloud.com)** rather than reporting them as "bugs" (unless they are bugs of course). This helps the
|
||||
maintainers (who are volunteers) remain focused on making the image better (rather than responding solely to one-on-one support issues). (Tip: Some of the maintainers are also regular responders to help requests
|
||||
on the [community help forum](https://help.nextcloud.com/).)
|
||||
|
@ -732,8 +743,16 @@ If there is a relevant existing open issue, you can either add to the discussion
|
|||
|
||||
If you believe you've found a new bug, please create a new Issue so that others can try to reproduce it and remediation can be tracked.
|
||||
|
||||

|
||||

|
||||

|
||||

|
||||
|
||||
**If you have any problems or usage questions while using the image, please ask for assistance on the [Nextcloud Community Help Forum](https://help.nextcloud.com)** rather than reporting them as "bugs" (unless they really are bugs of course). This helps the
|
||||
maintainers (who are volunteers) remain focused on making the image better (rather than responding solely to one-on-one support issues). (Tip: Some of the maintainers are also regular responders to help requests
|
||||
on the [Nextcloud Community Help Forum](https://help.nextcloud.com).)
|
||||
|
||||
[](https://help.nextcloud.com/)
|
||||
[](https://help.nextcloud.com/)
|
||||
|
||||
Most Nextcloud Server matters are covered in the official [Nextcloud Admin Manual](https://docs.nextcloud.com/server/latest/admin_manual/) or the [other official Nextcloud documentation](https://docs.nextcloud.com) (which are routinely updated).
|
||||
|
|
|
@ -23,32 +23,39 @@ run_as() {
|
|||
run_path() {
|
||||
local hook_folder_path="/docker-entrypoint-hooks.d/$1"
|
||||
local return_code=0
|
||||
local found=0
|
||||
|
||||
if ! [ -d "${hook_folder_path}" ]; then
|
||||
echo "=> Skipping the folder \"${hook_folder_path}\", because it doesn't exist"
|
||||
echo "=> Searching for hook scripts (*.sh) to run, located in the folder \"${hook_folder_path}\""
|
||||
|
||||
if ! [ -d "${hook_folder_path}" ] || directory_empty "${hook_folder_path}"; then
|
||||
echo "==> Skipped: the \"$1\" folder is empty (or does not exist)"
|
||||
return 0
|
||||
fi
|
||||
|
||||
echo "=> Searching for scripts (*.sh) to run, located in the folder: ${hook_folder_path}"
|
||||
|
||||
(
|
||||
find "${hook_folder_path}" -maxdepth 1 -iname '*.sh' '(' -type f -o -type l ')' -print | sort | while read -r script_file_path; do
|
||||
find "${hook_folder_path}" -maxdepth 1 -iname '*.sh' '(' -type f -o -type l ')' -print | sort | (
|
||||
while read -r script_file_path; do
|
||||
if ! [ -x "${script_file_path}" ]; then
|
||||
echo "==> The script \"${script_file_path}\" was skipped, because it didn't have the executable flag"
|
||||
echo "==> The script \"${script_file_path}\" was skipped, because it lacks the executable flag"
|
||||
found=$((found-1))
|
||||
continue
|
||||
fi
|
||||
|
||||
echo "==> Running the script (cwd: $(pwd)): \"${script_file_path}\""
|
||||
|
||||
found=$((found+1))
|
||||
run_as "${script_file_path}" || return_code="$?"
|
||||
|
||||
if [ "${return_code}" -ne "0" ]; then
|
||||
echo "==> Failed at executing \"${script_file_path}\". Exit code: ${return_code}"
|
||||
echo "==> Failed at executing script \"${script_file_path}\". Exit code: ${return_code}"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
echo "==> Finished the script: \"${script_file_path}\""
|
||||
echo "==> Finished executing the script: \"${script_file_path}\""
|
||||
done
|
||||
if [ "$found" -lt "1" ]; then
|
||||
echo "==> Skipped: the \"$1\" folder does not contain any valid scripts"
|
||||
else
|
||||
echo "=> Completed executing scripts in the \"$1\" folder"
|
||||
fi
|
||||
)
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue