Remi Rampin
405e815285
Un-factor do_install_or_upgrade()
...
Signed-off-by: Remi Rampin <remi@rampin.org>
3 years ago
Remi Rampin
8aabc4b3ea
Remove NEXTCLOUD_INIT_LOCK
...
Signed-off-by: Remi Rampin <remi@rampin.org>
3 years ago
Remi Rampin
4667cbe149
Use flock to lock the whole upgrade process
...
Signed-off-by: Remi Rampin <remi@rampin.org>
3 years ago
Remi Rampin
df9653a00c
Remove old locking logic
...
Signed-off-by: Remi Rampin <remi@rampin.org>
3 years ago
Remi Rampin
7a0aba93a2
Factor do_install_or_upgrade()
...
Signed-off-by: Remi Rampin <remi@rampin.org>
3 years ago
J0WI
24440af0d5
Enhance shell syntax ( #1868 )
...
Signed-off-by: J0WI <J0WI@users.noreply.github.com>
Signed-off-by: J0WI <J0WI@users.noreply.github.com>
3 years ago
MAbeeTT (Matías Pecchia)
aa779c7c92
prevents running `occ maintenance:update:htaccess` on a first run volume ( #1843 )
...
Signed-off-by: Matías Pecchia <179218+mabeett@users.noreply.github.com>
Signed-off-by: Matías Pecchia <179218+mabeett@users.noreply.github.com>
3 years ago
J0WI
19256cdbf8
Allow to run with custom uid ( #1812 )
...
fix : #359 , #772 , #1081 , #1087 , #1278
Signed-off-by: J0WI <J0WI@users.noreply.github.com>
Signed-off-by: J0WI <J0WI@users.noreply.github.com>
3 years ago
John Molakvoæ
209d65d0b6
Add `NEXTCLOUD_INIT_HTACCESS` to run `occ maintenance:update:htaccess` after init ( #1761 )
...
Signed-off-by: John Molakvoæ <skjnldsv@protonmail.com>
4 years ago
John Molakvoæ
83d5e72596
Add `NEXTCLOUD_INIT_LOCK` to enable shared html volume update
...
Signed-off-by: John Molakvoæ <skjnldsv@protonmail.com>
4 years ago
J0WI
7a89d751ca
Limit until loop ( #1741 )
...
Signed-off-by: J0WI <J0WI@users.noreply.github.com>
4 years ago
John Molakvoæ
35b8ebf954
Allow simultaneous initialization of common html volume
...
Signed-off-by: John Molakvoæ <skjnldsv@protonmail.com>
4 years ago
Doncho N. Gunchev
ababef74e9
Revert "Simplify first character check in entrypoint.sh ( #1679 )" #1699 ( #1701 )
...
.In php:8.0-fpm-bullseye /bin/sh is dash, which does not support "${X:0:1}"
(substring expansion).
This reverts commit 0536522175 .
Signed-off-by: Doncho N. Gunchev <dgunchev@gmail.com>
4 years ago
Doncho N. Gunchev
0536522175
Simplify first character check in entrypoint.sh ( #1679 )
...
Signed-off-by: Doncho N. Gunchev <dgunchev@gmail.com>
4 years ago
Michael Griego
9b057aafb0
Enable session locking for the redis session handler and use more sane locking configs. ( #1364 )
...
Signed-off-by: Mike Griego <mike@griegocentral.com>
5 years ago
KnallbertLp
e2e521023f
enable usage of REDIS_HOST_PASSWORD_FILE ( #1325 )
5 years ago
J0WI
1e6d0620af
Revert "Fix triggering install and update script ( #1181 )"
...
This reverts commit de90bed706 .
6 years ago
stackcoder
de90bed706
Fix triggering install and update script ( #1181 )
...
* 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>
6 years ago
J0WI
3ac6fde8d6
Remove db prefix option ( #1131 )
...
* 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>
6 years ago
kesselb
63438ef792
Disable rewriteip for apache image ( #1010 )
...
* 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>
6 years ago
Boris Gorbylev
efe3caebdc
Compatibility with docker secrets ( #560 )
...
* 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>
6 years ago
J0WI
13be446667
Change sleep time from 3s to 10s in all entrypoint.sh files ( #963 )
...
Signed-off-by: Nils Wittenbrink <nilswittenbrink@web.de>
Co-authored-by: Nils160988 <nilswittenbrink@web.de>
6 years ago
Tortue Torche
d9ab30a969
Fix Redis Unix socket support ( #944 )
...
* 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>
6 years ago
algakzru
73ff5c860d
Set redis password ( #856 )
6 years ago
J0WI
a87f914de3
Avoid empty table prefix
...
Signed-off-by: J0WI <J0WI@users.noreply.github.com>
7 years ago
Tilo Spannagel
f0fd46a989
Revert "Compatibility with docker secrets ( Fix #560 )"
...
[skip travis]
Signed-off-by: Tilo Spannagel <development@tilosp.de>
7 years ago
J0WI
343169d233
Compatibility with docker secrets ( Fix #560 )
...
Signed-off-by: J0WI <J0WI@users.noreply.github.com>
7 years ago
J0WI
83ea69d54b
Add Redis session handler
...
Signed-off-by: J0WI <J0WI@users.noreply.github.com>
7 years ago
Tilo Spannagel
9c769f4ffc
Copy version.php last
...
Signed-off-by: Tilo Spannagel <development@tilosp.de>
7 years ago
Richard Steinmetz
8bd688664d
Fix typo in docker-entrypoint.sh
...
Signed-off-by: Richard Steinmetz <steinmetz.richard@googlemail.com>
7 years ago
Tilo Spannagel
424364e2e1
Merge pull request #515 from SnowMB/add_update_variable
...
Add NEXTCLOUD_UPDATE for containers started with non-default commands
7 years ago
Arthur Schiwon
3f931009c5
add a mechanism to set trusted domains on install
7 years ago
Marc Brückner
63710a75a3
added new environment variable
7 years ago
Tilo Spannagel
91adc66fae
Merge pull request #480 from SnowMB/fix_sleeps
...
added retry loop and decreased sleep time
7 years ago
Marc Brückner
6eb8f3fa16
added retry loop and decreased sleep time
7 years ago
Tilo Spannagel
a46493fbc4
Use exclude file for the updater
...
Signed-off-by: Tilo Spannagel <development@tilosp.de>
7 years ago
Marc Bihlmaier
efe4edb8eb
echo to stdout when migration-script is running ( #333 )
...
* echo to stdout when migration-script is running
* specifying output
* output Initializing new instance
* simplify output
7 years ago
Tilo Spannagel
6b10932e81
Ignore shellcheck errors
...
Signed-off-by: Tilo Spannagel <development@tilosp.de>
7 years ago
Marc Brückner
dbadf5520b
fixed expansion of environment variables
7 years ago
Marc Brückner
bdc2d3e610
fix regex for apache
7 years ago
Marc Brückner
a3cce50b00
only initialize / update when the command is apache* or php-fpm (do nothing on thins like bash, echo)
7 years ago
Marc Brückner
f5d3234fca
- using defaults from autoconfig.php
...
- using '-n' instead of '! -z'
- adding quotes
7 years ago
Marc Brückner
7f485eb9fa
implement #455 : auto-install via occ maintenance:install
7 years ago
Louis Matthijssen
f6abe4472b
Fix small typo in upgrade script
7 years ago
Tilo Spannagel
677134a7f9
Remove the "--no-app-disable" option form the "occ upgrade" command
...
Signed-off-by: Tilo Spannagel <development@tilosp.de>
8 years ago
Tilo Spannagel
5d79969947
Fix indentation
8 years ago
Tilo Spannagel
db233e28be
Make docker-entrypoint.sh posix compliant
8 years ago
Tilo Spannagel
d104e1cba0
Add images for Release Candidates
8 years ago
Tilo Spannagel
69b4a015ed
Fix permissions when running as root
9 years ago
Tobias Brunner
bd3fc10d7d
update directory permissions to be compatible with non-root
...
This commit updates the directory permissions to be more compatible when
running the image without root f.e. on OpenShift or when specifying it
when running with `docker run --user www-data:root ...`.
It adds detection logic to the entrypoint script as sudo is not always
allowed.
This change in directory permissions was also proposed by the official
documentation, see https://github.com/nextcloud/documentation/commit/22e2530 .
The `chown` before the volume definition is needed to prepare the volume
as it inherits the permissions.
refs https://github.com/nextcloud/docker/issues/107
9 years ago