summaryrefslogtreecommitdiffstats
path: root/docker-entrypoint.sh
AgeCommit message (Collapse)Author
2024-03-04Revert "update docker-entrypoint.sh" (#2175)J0WI
2024-02-05update docker-entrypoint.shSimon L
Signed-off-by: Simon L <szaimen@e.mail.de>
2024-01-09Fix for PR #2095 breaking post-installation scripts in k8s (#2115)Yevhen Kolomeiko
* Fix docker-entrypoint.sh Signed-off-by: Yevhen Kolomeiko <Jarvis2709@gmail.com> * Fix docker-entrypoint.sh for alpine Signed-off-by: Yevhen Kolomeiko <Jarvis2709@gmail.com> * Use '-o' instead of two find's in docker-entrypoint.sh Signed-off-by: Yevhen Kolomeiko <Jarvis2709@gmail.com> * Use more laconic find parameters set in docker-entrypoint.sh Signed-off-by: Yevhen Kolomeiko <Jarvis2709@gmail.com> --------- Signed-off-by: Yevhen Kolomeiko <Jarvis2709@gmail.com>
2023-11-14Bug fix: not found error if hook folder contains files but non ending with ↵Dennis Værum
`*.sh` (#2095) * Use `find` to located `*.sh` Signed-off-by: Dennis Vestergaard Værum <github@varum.dk> * added msg if hook folder does not exist Signed-off-by: Dennis Vestergaard Værum <github@varum.dk> * Updated info message Co-authored-by: J0WI <J0WI@users.noreply.github.com> Signed-off-by: Dennis Værum <6872940+dvaerum@users.noreply.github.com> * Update docker-entrypoint.sh Small adjustments Signed-off-by: Dennis Værum <6872940+dvaerum@users.noreply.github.com> --------- Signed-off-by: Dennis Vestergaard Værum <github@varum.dk> Signed-off-by: Dennis Værum <6872940+dvaerum@users.noreply.github.com> Co-authored-by: J0WI <J0WI@users.noreply.github.com>
2023-07-09Block upgrade if it is not supported because major versions are too ↵Antonin Delpeuch
different (#2018) * Block upgrade if it is not supported Closes #1809. This prevents the install from getting in a state where none of the Docker images will accept running given the contents of the volumes. Signed-off-by: Antonin Delpeuch <antonin@delpeuch.eu> * Update docker-entrypoint.sh Co-authored-by: J0WI <J0WI@users.noreply.github.com> Signed-off-by: Antonin Delpeuch <antonin@delpeuch.eu> * Update docker-entrypoint.sh Co-authored-by: J0WI <J0WI@users.noreply.github.com> Signed-off-by: Antonin Delpeuch <antonin@delpeuch.eu> * Remove extra function Signed-off-by: Antonin Delpeuch <antonin@delpeuch.eu> * Update docker-entrypoint.sh Co-authored-by: J0WI <J0WI@users.noreply.github.com> Signed-off-by: Antonin Delpeuch <antonin@delpeuch.eu> --------- Signed-off-by: Antonin Delpeuch <antonin@delpeuch.eu> Co-authored-by: J0WI <J0WI@users.noreply.github.com>
2023-06-22Added entrypoint hooks for your own custom scripts (#1964)Dennis Værum
* Added entrypoint hooks for your own custom scripts Signed-off-by: Dennis Vestergaard Værum <github@varum.dk> * Small changes: - Only execute shell-scripts (mening files ending with .sh) - Sort the files before executing them, had forgotten 😅 - Added a message when a hook script finish - Added prefix arror to message to show the are related Signed-off-by: Dennis Vestergaard Værum <github@varum.dk> * Show in the search msg that it only searches for '*.sh' files Signed-off-by: Dennis Vestergaard Værum <github@varum.dk> * Fixed spelling mistake Co-authored-by: J0WI <J0WI@users.noreply.github.com> Signed-off-by: Dennis Værum <6872940+dvaerum@users.noreply.github.com> * Updated the `README.md` file Signed-off-by: Dennis Vestergaard Værum <github@varum.dk> * change from using find to using a for-loop to located the `.sh` files Signed-off-by: Dennis Vestergaard Værum <github@varum.dk> * Fix bug - that would make docker-entrypoint.sh failed, hook folders was empty Signed-off-by: Dennis Vestergaard Værum <github@varum.dk> --------- Signed-off-by: Dennis Vestergaard Værum <github@varum.dk> Signed-off-by: Dennis Værum <6872940+dvaerum@users.noreply.github.com> Co-authored-by: J0WI <J0WI@users.noreply.github.com>
2023-02-08Un-factor do_install_or_upgrade()Remi Rampin
Signed-off-by: Remi Rampin <remi@rampin.org>
2023-02-08Remove NEXTCLOUD_INIT_LOCKRemi Rampin
Signed-off-by: Remi Rampin <remi@rampin.org>
2023-01-27Use flock to lock the whole upgrade processRemi Rampin
Signed-off-by: Remi Rampin <remi@rampin.org>
2023-01-27Remove old locking logicRemi Rampin
Signed-off-by: Remi Rampin <remi@rampin.org>
2023-01-27Factor do_install_or_upgrade()Remi Rampin
Signed-off-by: Remi Rampin <remi@rampin.org>
2022-11-28Enhance shell syntax (#1868)J0WI
Signed-off-by: J0WI <J0WI@users.noreply.github.com> Signed-off-by: J0WI <J0WI@users.noreply.github.com>
2022-11-03prevents running `occ maintenance:update:htaccess` on a first run volume (#1843)MAbeeTT (Matías Pecchia)
Signed-off-by: Matías Pecchia <179218+mabeett@users.noreply.github.com> Signed-off-by: Matías Pecchia <179218+mabeett@users.noreply.github.com>
2022-09-06Allow to run with custom uid (#1812)J0WI
fix: #359, #772, #1081, #1087, #1278 Signed-off-by: J0WI <J0WI@users.noreply.github.com> Signed-off-by: J0WI <J0WI@users.noreply.github.com>
2022-06-30Add `NEXTCLOUD_INIT_HTACCESS` to run `occ maintenance:update:htaccess` after ↵John Molakvoæ
init (#1761) Signed-off-by: John Molakvoæ <skjnldsv@protonmail.com>
2022-06-01Add `NEXTCLOUD_INIT_LOCK` to enable shared html volume updateJohn Molakvoæ
Signed-off-by: John Molakvoæ <skjnldsv@protonmail.com>
2022-04-28Limit until loop (#1741)J0WI
Signed-off-by: J0WI <J0WI@users.noreply.github.com>
2022-04-22Allow simultaneous initialization of common html volumeJohn Molakvoæ
Signed-off-by: John Molakvoæ <skjnldsv@protonmail.com>
2022-02-18Revert "Simplify first character check in entrypoint.sh (#1679)" #1699 (#1701)Doncho N. Gunchev
.In php:8.0-fpm-bullseye /bin/sh is dash, which does not support "${X:0:1}" (substring expansion). This reverts commit 05365221755163f7f513bac939d4851e79b06a04. Signed-off-by: Doncho N. Gunchev <dgunchev@gmail.com>
2022-02-08Simplify first character check in entrypoint.sh (#1679)Doncho N. Gunchev
Signed-off-by: Doncho N. Gunchev <dgunchev@gmail.com>
2021-03-24Enable session locking for the redis session handler and use more sane ↵Michael Griego
locking configs. (#1364) Signed-off-by: Mike Griego <mike@griegocentral.com>
2020-12-20enable usage of REDIS_HOST_PASSWORD_FILE (#1325)KnallbertLp
2020-07-28Revert "Fix triggering install and update script (#1181)"J0WI
This reverts commit de90bed706d03973c8181b695e0207fa45847c28.
2020-07-26Fix triggering install and update script (#1181)stackcoder
* Match cmd provided by Dockerfile again with entrypoint.sh Signed-off-by: stackcoder <stackcoder@gmail.com> * Fixup README.md Signed-off-by: stackcoder <stackcoder@gmail.com>
2020-06-09Remove db prefix option (#1131)J0WI
* Remove db prefix option Signed-off-by: J0WI <J0WI@users.noreply.github.com> * Upgrade to 18.0.6 Signed-off-by: J0WI <J0WI@users.noreply.github.com>
2020-04-06Disable rewriteip for apache image (#1010)kesselb
* Disable rewrite ip for apache image Signed-off-by: Daniel Kesselberg <mail@danielkesselberg.de> * Run update.sh Signed-off-by: Daniel Kesselberg <mail@danielkesselberg.de>
2020-03-31Compatibility with docker secrets (#560)Boris Gorbylev
* Read passwords from files specified with *_PASSWORD_FILE variables (docker secrets) Fixes #731 Signed-off-by: Boris Gorbylev <ekho@ekho.name> Signed-off-by: Jonas Thelemann <e-mail@jonas-thelemann.de> * Add NEXTCLOUD_ADMIN_USER, POSTGRES_DB, POSTGRES_USER Signed-off-by: Jonas Thelemann <e-mail@jonas-thelemann.de> * Fix Variables Signed-off-by: Jonas Thelemann <e-mail@jonas-thelemann.de> Co-authored-by: Jonas Thelemann <e-mail@jonas-thelemann.de>
2020-01-13Change sleep time from 3s to 10s in all entrypoint.sh files (#963)18.0.0RC2-fpm-alpine18.0.0RC2-fpm18.0.0RC2-apache18.0.0RC218.0.0-rc-fpm-alpine18.0.0-rc-fpm18.0.0-rc-apache18.0.0-rc17.0.2-fpm-alpine17.0.2-fpm17.0.2-apache17.0.216.0.7-fpm-alpine16.0.7-fpm16.0.7-apache16.0.715.0.14-fpm-alpine15.0.14-fpm15.0.14-apache15.0.1415.0-fpm-alpine15.0-fpm15.0-apache15.015-fpm-alpine15-fpm15-apache15J0WI
Signed-off-by: Nils Wittenbrink <nilswittenbrink@web.de> Co-authored-by: Nils160988 <nilswittenbrink@web.de>
2020-01-10Fix Redis Unix socket support (#944)Tortue Torche
* Fix Redis Unix socket support Rebase and rewrite the @epma01 pull request, based on last Nextcloud Docker changes See: https://github.com/nextcloud/docker/pull/735 Signed-off-by: Tortue Torche <tortuetorche@users.noreply.github.com> * Fix CI tests with update.sh script Signed-off-by: Tortue Torche <tortuetorche@users.noreply.github.com>
2019-09-10Set redis password (#856)17.0.0beta4-fpm-alpine17.0.0beta4-fpm17.0.0beta4-apache17.0.0beta417.0.0-beta-fpm-alpine17.0.0-beta-fpm17.0.0-beta-apache17.0.0-beta17.0-beta-fpm-alpine17.0-beta-fpm17.0-beta-apache17.0-beta17-beta-fpm-alpine17-beta-fpm17-beta-apache17-beta16.0.4-fpm-alpine16.0.4-fpm16.0.4-apache16.0.415.0.11-fpm-alpine15.0.11-fpm15.0.11-apache15.0.1114.0.14-fpm-alpine14.0.14-fpm14.0.14-apache14.0.1414.0-fpm-alpine14.0-fpm14.0-apache14.014-fpm-alpine14-fpm14-apache14algakzru
2019-06-22Avoid empty table prefixJ0WI
Signed-off-by: J0WI <J0WI@users.noreply.github.com>
2019-04-30Revert "Compatibility with docker secrets (Fix #560)"Tilo Spannagel
[skip travis] Signed-off-by: Tilo Spannagel <development@tilosp.de>
2019-04-29Compatibility with docker secrets (Fix #560)J0WI
Signed-off-by: J0WI <J0WI@users.noreply.github.com>
2019-04-26Add Redis session handlerJ0WI
Signed-off-by: J0WI <J0WI@users.noreply.github.com>
2019-03-13Copy version.php lastTilo Spannagel
Signed-off-by: Tilo Spannagel <development@tilosp.de>
2018-12-12Fix typo in docker-entrypoint.shRichard Steinmetz
Signed-off-by: Richard Steinmetz <steinmetz.richard@googlemail.com>
2018-10-16Merge pull request #515 from SnowMB/add_update_variableTilo Spannagel
Add NEXTCLOUD_UPDATE for containers started with non-default commands
2018-10-15add a mechanism to set trusted domains on installArthur Schiwon
2018-10-15added new environment variableMarc Brückner
2018-10-03Merge pull request #480 from SnowMB/fix_sleeps14.0.1-fpm-alpine14.0.1-fpm14.0.1-apache14.0.113.0.6-fpm-alpine13.0.6-fpm13.0.6-apache13.0.612.0.11-fpm-alpine12.0.11-fpm12.0.11-apache12.0.11Tilo Spannagel
added retry loop and decreased sleep time
2018-10-02added retry loop and decreased sleep timeMarc Brückner
2018-10-01Use exclude file for the updaterTilo Spannagel
Signed-off-by: Tilo Spannagel <development@tilosp.de>
2018-09-29echo to stdout when migration-script is running (#333)Marc Bihlmaier
* echo to stdout when migration-script is running * specifying output * output Initializing new instance * simplify output
2018-09-27Ignore shellcheck errorsTilo Spannagel
Signed-off-by: Tilo Spannagel <development@tilosp.de>
2018-09-27fixed expansion of environment variablesMarc Brückner
2018-09-14fix regex for apacheMarc Brückner
2018-09-13only initialize / update when the command is apache* or php-fpm (do nothing ↵Marc Brückner
on thins like bash, echo)
2018-09-13- using defaults from autoconfig.phpMarc Brückner
- using '-n' instead of '! -z' - adding quotes
2018-09-12implement #455: auto-install via occ maintenance:installMarc Brückner
2018-09-09Fix small typo in upgrade scriptLouis Matthijssen