mirror of
				https://github.com/nextcloud/docker.git
				synced 2025-10-30 07:51:33 +01:00 
			
		
		
		
	Runs update.sh
This commit is contained in:
		
							parent
							
								
									a10ff74b68
								
							
						
					
					
						commit
						6ef8de9c85
					
				| @ -2,6 +2,7 @@ | |||||||
| if (getenv('OBJECTSTORE_S3_BUCKET')) { | if (getenv('OBJECTSTORE_S3_BUCKET')) { | ||||||
|   $use_ssl = getenv('OBJECTSTORE_S3_SSL'); |   $use_ssl = getenv('OBJECTSTORE_S3_SSL'); | ||||||
|   $use_path = getenv('OBJECTSTORE_S3_USEPATH_STYLE'); |   $use_path = getenv('OBJECTSTORE_S3_USEPATH_STYLE'); | ||||||
|  |   $autocreate = getenv('OBJECTSTORE_S3_AUTOCREATE'); | ||||||
|   $CONFIG = array( |   $CONFIG = array( | ||||||
|     'objectstore' => array( |     'objectstore' => array( | ||||||
|       'class' => '\OC\Files\ObjectStore\S3', |       'class' => '\OC\Files\ObjectStore\S3', | ||||||
| @ -12,6 +13,8 @@ if (getenv('OBJECTSTORE_S3_BUCKET')) { | |||||||
|         'region' => getenv('OBJECTSTORE_S3_REGION') ?: '', |         'region' => getenv('OBJECTSTORE_S3_REGION') ?: '', | ||||||
|         'hostname' => getenv('OBJECTSTORE_S3_HOST') ?: '', |         'hostname' => getenv('OBJECTSTORE_S3_HOST') ?: '', | ||||||
|         'port' => getenv('OBJECTSTORE_S3_PORT') ?: '', |         'port' => getenv('OBJECTSTORE_S3_PORT') ?: '', | ||||||
|  |         'objectPrefix' => getenv("OBJECTSTORE_S3_OBJECT_PREFIX") ? getenv("OBJECTSTORE_S3_OBJECT_PREFIX") : "urn:oid:", | ||||||
|  |         'autocreate' => (strtolower($autocreate) === 'false' || $autocreate == false) ? false : true, | ||||||
|         'use_ssl' => (strtolower($use_ssl) === 'false' || $use_ssl == false) ? false : true, |         'use_ssl' => (strtolower($use_ssl) === 'false' || $use_ssl == false) ? false : true, | ||||||
|         // required for some non Amazon S3 implementations
 |         // required for some non Amazon S3 implementations
 | ||||||
|         'use_path_style' => $use_path == true && strtolower($use_path) !== 'false' |         'use_path_style' => $use_path == true && strtolower($use_path) !== 'false' | ||||||
|  | |||||||
| @ -2,6 +2,7 @@ | |||||||
| if (getenv('OBJECTSTORE_S3_BUCKET')) { | if (getenv('OBJECTSTORE_S3_BUCKET')) { | ||||||
|   $use_ssl = getenv('OBJECTSTORE_S3_SSL'); |   $use_ssl = getenv('OBJECTSTORE_S3_SSL'); | ||||||
|   $use_path = getenv('OBJECTSTORE_S3_USEPATH_STYLE'); |   $use_path = getenv('OBJECTSTORE_S3_USEPATH_STYLE'); | ||||||
|  |   $autocreate = getenv('OBJECTSTORE_S3_AUTOCREATE'); | ||||||
|   $CONFIG = array( |   $CONFIG = array( | ||||||
|     'objectstore' => array( |     'objectstore' => array( | ||||||
|       'class' => '\OC\Files\ObjectStore\S3', |       'class' => '\OC\Files\ObjectStore\S3', | ||||||
| @ -12,6 +13,8 @@ if (getenv('OBJECTSTORE_S3_BUCKET')) { | |||||||
|         'region' => getenv('OBJECTSTORE_S3_REGION') ?: '', |         'region' => getenv('OBJECTSTORE_S3_REGION') ?: '', | ||||||
|         'hostname' => getenv('OBJECTSTORE_S3_HOST') ?: '', |         'hostname' => getenv('OBJECTSTORE_S3_HOST') ?: '', | ||||||
|         'port' => getenv('OBJECTSTORE_S3_PORT') ?: '', |         'port' => getenv('OBJECTSTORE_S3_PORT') ?: '', | ||||||
|  |         'objectPrefix' => getenv("OBJECTSTORE_S3_OBJECT_PREFIX") ? getenv("OBJECTSTORE_S3_OBJECT_PREFIX") : "urn:oid:", | ||||||
|  |         'autocreate' => (strtolower($autocreate) === 'false' || $autocreate == false) ? false : true, | ||||||
|         'use_ssl' => (strtolower($use_ssl) === 'false' || $use_ssl == false) ? false : true, |         'use_ssl' => (strtolower($use_ssl) === 'false' || $use_ssl == false) ? false : true, | ||||||
|         // required for some non Amazon S3 implementations
 |         // required for some non Amazon S3 implementations
 | ||||||
|         'use_path_style' => $use_path == true && strtolower($use_path) !== 'false' |         'use_path_style' => $use_path == true && strtolower($use_path) !== 'false' | ||||||
|  | |||||||
| @ -2,6 +2,7 @@ | |||||||
| if (getenv('OBJECTSTORE_S3_BUCKET')) { | if (getenv('OBJECTSTORE_S3_BUCKET')) { | ||||||
|   $use_ssl = getenv('OBJECTSTORE_S3_SSL'); |   $use_ssl = getenv('OBJECTSTORE_S3_SSL'); | ||||||
|   $use_path = getenv('OBJECTSTORE_S3_USEPATH_STYLE'); |   $use_path = getenv('OBJECTSTORE_S3_USEPATH_STYLE'); | ||||||
|  |   $autocreate = getenv('OBJECTSTORE_S3_AUTOCREATE'); | ||||||
|   $CONFIG = array( |   $CONFIG = array( | ||||||
|     'objectstore' => array( |     'objectstore' => array( | ||||||
|       'class' => '\OC\Files\ObjectStore\S3', |       'class' => '\OC\Files\ObjectStore\S3', | ||||||
| @ -12,6 +13,8 @@ if (getenv('OBJECTSTORE_S3_BUCKET')) { | |||||||
|         'region' => getenv('OBJECTSTORE_S3_REGION') ?: '', |         'region' => getenv('OBJECTSTORE_S3_REGION') ?: '', | ||||||
|         'hostname' => getenv('OBJECTSTORE_S3_HOST') ?: '', |         'hostname' => getenv('OBJECTSTORE_S3_HOST') ?: '', | ||||||
|         'port' => getenv('OBJECTSTORE_S3_PORT') ?: '', |         'port' => getenv('OBJECTSTORE_S3_PORT') ?: '', | ||||||
|  |         'objectPrefix' => getenv("OBJECTSTORE_S3_OBJECT_PREFIX") ? getenv("OBJECTSTORE_S3_OBJECT_PREFIX") : "urn:oid:", | ||||||
|  |         'autocreate' => (strtolower($autocreate) === 'false' || $autocreate == false) ? false : true, | ||||||
|         'use_ssl' => (strtolower($use_ssl) === 'false' || $use_ssl == false) ? false : true, |         'use_ssl' => (strtolower($use_ssl) === 'false' || $use_ssl == false) ? false : true, | ||||||
|         // required for some non Amazon S3 implementations
 |         // required for some non Amazon S3 implementations
 | ||||||
|         'use_path_style' => $use_path == true && strtolower($use_path) !== 'false' |         'use_path_style' => $use_path == true && strtolower($use_path) !== 'false' | ||||||
|  | |||||||
| @ -2,6 +2,7 @@ | |||||||
| if (getenv('OBJECTSTORE_S3_BUCKET')) { | if (getenv('OBJECTSTORE_S3_BUCKET')) { | ||||||
|   $use_ssl = getenv('OBJECTSTORE_S3_SSL'); |   $use_ssl = getenv('OBJECTSTORE_S3_SSL'); | ||||||
|   $use_path = getenv('OBJECTSTORE_S3_USEPATH_STYLE'); |   $use_path = getenv('OBJECTSTORE_S3_USEPATH_STYLE'); | ||||||
|  |   $autocreate = getenv('OBJECTSTORE_S3_AUTOCREATE'); | ||||||
|   $CONFIG = array( |   $CONFIG = array( | ||||||
|     'objectstore' => array( |     'objectstore' => array( | ||||||
|       'class' => '\OC\Files\ObjectStore\S3', |       'class' => '\OC\Files\ObjectStore\S3', | ||||||
| @ -12,6 +13,8 @@ if (getenv('OBJECTSTORE_S3_BUCKET')) { | |||||||
|         'region' => getenv('OBJECTSTORE_S3_REGION') ?: '', |         'region' => getenv('OBJECTSTORE_S3_REGION') ?: '', | ||||||
|         'hostname' => getenv('OBJECTSTORE_S3_HOST') ?: '', |         'hostname' => getenv('OBJECTSTORE_S3_HOST') ?: '', | ||||||
|         'port' => getenv('OBJECTSTORE_S3_PORT') ?: '', |         'port' => getenv('OBJECTSTORE_S3_PORT') ?: '', | ||||||
|  |         'objectPrefix' => getenv("OBJECTSTORE_S3_OBJECT_PREFIX") ? getenv("OBJECTSTORE_S3_OBJECT_PREFIX") : "urn:oid:", | ||||||
|  |         'autocreate' => (strtolower($autocreate) === 'false' || $autocreate == false) ? false : true, | ||||||
|         'use_ssl' => (strtolower($use_ssl) === 'false' || $use_ssl == false) ? false : true, |         'use_ssl' => (strtolower($use_ssl) === 'false' || $use_ssl == false) ? false : true, | ||||||
|         // required for some non Amazon S3 implementations
 |         // required for some non Amazon S3 implementations
 | ||||||
|         'use_path_style' => $use_path == true && strtolower($use_path) !== 'false' |         'use_path_style' => $use_path == true && strtolower($use_path) !== 'false' | ||||||
|  | |||||||
| @ -2,6 +2,7 @@ | |||||||
| if (getenv('OBJECTSTORE_S3_BUCKET')) { | if (getenv('OBJECTSTORE_S3_BUCKET')) { | ||||||
|   $use_ssl = getenv('OBJECTSTORE_S3_SSL'); |   $use_ssl = getenv('OBJECTSTORE_S3_SSL'); | ||||||
|   $use_path = getenv('OBJECTSTORE_S3_USEPATH_STYLE'); |   $use_path = getenv('OBJECTSTORE_S3_USEPATH_STYLE'); | ||||||
|  |   $autocreate = getenv('OBJECTSTORE_S3_AUTOCREATE'); | ||||||
|   $CONFIG = array( |   $CONFIG = array( | ||||||
|     'objectstore' => array( |     'objectstore' => array( | ||||||
|       'class' => '\OC\Files\ObjectStore\S3', |       'class' => '\OC\Files\ObjectStore\S3', | ||||||
| @ -12,6 +13,8 @@ if (getenv('OBJECTSTORE_S3_BUCKET')) { | |||||||
|         'region' => getenv('OBJECTSTORE_S3_REGION') ?: '', |         'region' => getenv('OBJECTSTORE_S3_REGION') ?: '', | ||||||
|         'hostname' => getenv('OBJECTSTORE_S3_HOST') ?: '', |         'hostname' => getenv('OBJECTSTORE_S3_HOST') ?: '', | ||||||
|         'port' => getenv('OBJECTSTORE_S3_PORT') ?: '', |         'port' => getenv('OBJECTSTORE_S3_PORT') ?: '', | ||||||
|  |         'objectPrefix' => getenv("OBJECTSTORE_S3_OBJECT_PREFIX") ? getenv("OBJECTSTORE_S3_OBJECT_PREFIX") : "urn:oid:", | ||||||
|  |         'autocreate' => (strtolower($autocreate) === 'false' || $autocreate == false) ? false : true, | ||||||
|         'use_ssl' => (strtolower($use_ssl) === 'false' || $use_ssl == false) ? false : true, |         'use_ssl' => (strtolower($use_ssl) === 'false' || $use_ssl == false) ? false : true, | ||||||
|         // required for some non Amazon S3 implementations
 |         // required for some non Amazon S3 implementations
 | ||||||
|         'use_path_style' => $use_path == true && strtolower($use_path) !== 'false' |         'use_path_style' => $use_path == true && strtolower($use_path) !== 'false' | ||||||
|  | |||||||
| @ -2,6 +2,7 @@ | |||||||
| if (getenv('OBJECTSTORE_S3_BUCKET')) { | if (getenv('OBJECTSTORE_S3_BUCKET')) { | ||||||
|   $use_ssl = getenv('OBJECTSTORE_S3_SSL'); |   $use_ssl = getenv('OBJECTSTORE_S3_SSL'); | ||||||
|   $use_path = getenv('OBJECTSTORE_S3_USEPATH_STYLE'); |   $use_path = getenv('OBJECTSTORE_S3_USEPATH_STYLE'); | ||||||
|  |   $autocreate = getenv('OBJECTSTORE_S3_AUTOCREATE'); | ||||||
|   $CONFIG = array( |   $CONFIG = array( | ||||||
|     'objectstore' => array( |     'objectstore' => array( | ||||||
|       'class' => '\OC\Files\ObjectStore\S3', |       'class' => '\OC\Files\ObjectStore\S3', | ||||||
| @ -12,6 +13,8 @@ if (getenv('OBJECTSTORE_S3_BUCKET')) { | |||||||
|         'region' => getenv('OBJECTSTORE_S3_REGION') ?: '', |         'region' => getenv('OBJECTSTORE_S3_REGION') ?: '', | ||||||
|         'hostname' => getenv('OBJECTSTORE_S3_HOST') ?: '', |         'hostname' => getenv('OBJECTSTORE_S3_HOST') ?: '', | ||||||
|         'port' => getenv('OBJECTSTORE_S3_PORT') ?: '', |         'port' => getenv('OBJECTSTORE_S3_PORT') ?: '', | ||||||
|  |         'objectPrefix' => getenv("OBJECTSTORE_S3_OBJECT_PREFIX") ? getenv("OBJECTSTORE_S3_OBJECT_PREFIX") : "urn:oid:", | ||||||
|  |         'autocreate' => (strtolower($autocreate) === 'false' || $autocreate == false) ? false : true, | ||||||
|         'use_ssl' => (strtolower($use_ssl) === 'false' || $use_ssl == false) ? false : true, |         'use_ssl' => (strtolower($use_ssl) === 'false' || $use_ssl == false) ? false : true, | ||||||
|         // required for some non Amazon S3 implementations
 |         // required for some non Amazon S3 implementations
 | ||||||
|         'use_path_style' => $use_path == true && strtolower($use_path) !== 'false' |         'use_path_style' => $use_path == true && strtolower($use_path) !== 'false' | ||||||
|  | |||||||
| @ -2,6 +2,7 @@ | |||||||
| if (getenv('OBJECTSTORE_S3_BUCKET')) { | if (getenv('OBJECTSTORE_S3_BUCKET')) { | ||||||
|   $use_ssl = getenv('OBJECTSTORE_S3_SSL'); |   $use_ssl = getenv('OBJECTSTORE_S3_SSL'); | ||||||
|   $use_path = getenv('OBJECTSTORE_S3_USEPATH_STYLE'); |   $use_path = getenv('OBJECTSTORE_S3_USEPATH_STYLE'); | ||||||
|  |   $autocreate = getenv('OBJECTSTORE_S3_AUTOCREATE'); | ||||||
|   $CONFIG = array( |   $CONFIG = array( | ||||||
|     'objectstore' => array( |     'objectstore' => array( | ||||||
|       'class' => '\OC\Files\ObjectStore\S3', |       'class' => '\OC\Files\ObjectStore\S3', | ||||||
| @ -12,6 +13,8 @@ if (getenv('OBJECTSTORE_S3_BUCKET')) { | |||||||
|         'region' => getenv('OBJECTSTORE_S3_REGION') ?: '', |         'region' => getenv('OBJECTSTORE_S3_REGION') ?: '', | ||||||
|         'hostname' => getenv('OBJECTSTORE_S3_HOST') ?: '', |         'hostname' => getenv('OBJECTSTORE_S3_HOST') ?: '', | ||||||
|         'port' => getenv('OBJECTSTORE_S3_PORT') ?: '', |         'port' => getenv('OBJECTSTORE_S3_PORT') ?: '', | ||||||
|  |         'objectPrefix' => getenv("OBJECTSTORE_S3_OBJECT_PREFIX") ? getenv("OBJECTSTORE_S3_OBJECT_PREFIX") : "urn:oid:", | ||||||
|  |         'autocreate' => (strtolower($autocreate) === 'false' || $autocreate == false) ? false : true, | ||||||
|         'use_ssl' => (strtolower($use_ssl) === 'false' || $use_ssl == false) ? false : true, |         'use_ssl' => (strtolower($use_ssl) === 'false' || $use_ssl == false) ? false : true, | ||||||
|         // required for some non Amazon S3 implementations
 |         // required for some non Amazon S3 implementations
 | ||||||
|         'use_path_style' => $use_path == true && strtolower($use_path) !== 'false' |         'use_path_style' => $use_path == true && strtolower($use_path) !== 'false' | ||||||
|  | |||||||
| @ -2,6 +2,7 @@ | |||||||
| if (getenv('OBJECTSTORE_S3_BUCKET')) { | if (getenv('OBJECTSTORE_S3_BUCKET')) { | ||||||
|   $use_ssl = getenv('OBJECTSTORE_S3_SSL'); |   $use_ssl = getenv('OBJECTSTORE_S3_SSL'); | ||||||
|   $use_path = getenv('OBJECTSTORE_S3_USEPATH_STYLE'); |   $use_path = getenv('OBJECTSTORE_S3_USEPATH_STYLE'); | ||||||
|  |   $autocreate = getenv('OBJECTSTORE_S3_AUTOCREATE'); | ||||||
|   $CONFIG = array( |   $CONFIG = array( | ||||||
|     'objectstore' => array( |     'objectstore' => array( | ||||||
|       'class' => '\OC\Files\ObjectStore\S3', |       'class' => '\OC\Files\ObjectStore\S3', | ||||||
| @ -12,6 +13,8 @@ if (getenv('OBJECTSTORE_S3_BUCKET')) { | |||||||
|         'region' => getenv('OBJECTSTORE_S3_REGION') ?: '', |         'region' => getenv('OBJECTSTORE_S3_REGION') ?: '', | ||||||
|         'hostname' => getenv('OBJECTSTORE_S3_HOST') ?: '', |         'hostname' => getenv('OBJECTSTORE_S3_HOST') ?: '', | ||||||
|         'port' => getenv('OBJECTSTORE_S3_PORT') ?: '', |         'port' => getenv('OBJECTSTORE_S3_PORT') ?: '', | ||||||
|  |         'objectPrefix' => getenv("OBJECTSTORE_S3_OBJECT_PREFIX") ? getenv("OBJECTSTORE_S3_OBJECT_PREFIX") : "urn:oid:", | ||||||
|  |         'autocreate' => (strtolower($autocreate) === 'false' || $autocreate == false) ? false : true, | ||||||
|         'use_ssl' => (strtolower($use_ssl) === 'false' || $use_ssl == false) ? false : true, |         'use_ssl' => (strtolower($use_ssl) === 'false' || $use_ssl == false) ? false : true, | ||||||
|         // required for some non Amazon S3 implementations
 |         // required for some non Amazon S3 implementations
 | ||||||
|         'use_path_style' => $use_path == true && strtolower($use_path) !== 'false' |         'use_path_style' => $use_path == true && strtolower($use_path) !== 'false' | ||||||
|  | |||||||
| @ -2,6 +2,7 @@ | |||||||
| if (getenv('OBJECTSTORE_S3_BUCKET')) { | if (getenv('OBJECTSTORE_S3_BUCKET')) { | ||||||
|   $use_ssl = getenv('OBJECTSTORE_S3_SSL'); |   $use_ssl = getenv('OBJECTSTORE_S3_SSL'); | ||||||
|   $use_path = getenv('OBJECTSTORE_S3_USEPATH_STYLE'); |   $use_path = getenv('OBJECTSTORE_S3_USEPATH_STYLE'); | ||||||
|  |   $autocreate = getenv('OBJECTSTORE_S3_AUTOCREATE'); | ||||||
|   $CONFIG = array( |   $CONFIG = array( | ||||||
|     'objectstore' => array( |     'objectstore' => array( | ||||||
|       'class' => '\OC\Files\ObjectStore\S3', |       'class' => '\OC\Files\ObjectStore\S3', | ||||||
| @ -12,6 +13,8 @@ if (getenv('OBJECTSTORE_S3_BUCKET')) { | |||||||
|         'region' => getenv('OBJECTSTORE_S3_REGION') ?: '', |         'region' => getenv('OBJECTSTORE_S3_REGION') ?: '', | ||||||
|         'hostname' => getenv('OBJECTSTORE_S3_HOST') ?: '', |         'hostname' => getenv('OBJECTSTORE_S3_HOST') ?: '', | ||||||
|         'port' => getenv('OBJECTSTORE_S3_PORT') ?: '', |         'port' => getenv('OBJECTSTORE_S3_PORT') ?: '', | ||||||
|  |         'objectPrefix' => getenv("OBJECTSTORE_S3_OBJECT_PREFIX") ? getenv("OBJECTSTORE_S3_OBJECT_PREFIX") : "urn:oid:", | ||||||
|  |         'autocreate' => (strtolower($autocreate) === 'false' || $autocreate == false) ? false : true, | ||||||
|         'use_ssl' => (strtolower($use_ssl) === 'false' || $use_ssl == false) ? false : true, |         'use_ssl' => (strtolower($use_ssl) === 'false' || $use_ssl == false) ? false : true, | ||||||
|         // required for some non Amazon S3 implementations
 |         // required for some non Amazon S3 implementations
 | ||||||
|         'use_path_style' => $use_path == true && strtolower($use_path) !== 'false' |         'use_path_style' => $use_path == true && strtolower($use_path) !== 'false' | ||||||
|  | |||||||
| @ -2,6 +2,7 @@ | |||||||
| if (getenv('OBJECTSTORE_S3_BUCKET')) { | if (getenv('OBJECTSTORE_S3_BUCKET')) { | ||||||
|   $use_ssl = getenv('OBJECTSTORE_S3_SSL'); |   $use_ssl = getenv('OBJECTSTORE_S3_SSL'); | ||||||
|   $use_path = getenv('OBJECTSTORE_S3_USEPATH_STYLE'); |   $use_path = getenv('OBJECTSTORE_S3_USEPATH_STYLE'); | ||||||
|  |   $autocreate = getenv('OBJECTSTORE_S3_AUTOCREATE'); | ||||||
|   $CONFIG = array( |   $CONFIG = array( | ||||||
|     'objectstore' => array( |     'objectstore' => array( | ||||||
|       'class' => '\OC\Files\ObjectStore\S3', |       'class' => '\OC\Files\ObjectStore\S3', | ||||||
| @ -12,6 +13,8 @@ if (getenv('OBJECTSTORE_S3_BUCKET')) { | |||||||
|         'region' => getenv('OBJECTSTORE_S3_REGION') ?: '', |         'region' => getenv('OBJECTSTORE_S3_REGION') ?: '', | ||||||
|         'hostname' => getenv('OBJECTSTORE_S3_HOST') ?: '', |         'hostname' => getenv('OBJECTSTORE_S3_HOST') ?: '', | ||||||
|         'port' => getenv('OBJECTSTORE_S3_PORT') ?: '', |         'port' => getenv('OBJECTSTORE_S3_PORT') ?: '', | ||||||
|  |         'objectPrefix' => getenv("OBJECTSTORE_S3_OBJECT_PREFIX") ? getenv("OBJECTSTORE_S3_OBJECT_PREFIX") : "urn:oid:", | ||||||
|  |         'autocreate' => (strtolower($autocreate) === 'false' || $autocreate == false) ? false : true, | ||||||
|         'use_ssl' => (strtolower($use_ssl) === 'false' || $use_ssl == false) ? false : true, |         'use_ssl' => (strtolower($use_ssl) === 'false' || $use_ssl == false) ? false : true, | ||||||
|         // required for some non Amazon S3 implementations
 |         // required for some non Amazon S3 implementations
 | ||||||
|         'use_path_style' => $use_path == true && strtolower($use_path) !== 'false' |         'use_path_style' => $use_path == true && strtolower($use_path) !== 'false' | ||||||
|  | |||||||
| @ -2,6 +2,7 @@ | |||||||
| if (getenv('OBJECTSTORE_S3_BUCKET')) { | if (getenv('OBJECTSTORE_S3_BUCKET')) { | ||||||
|   $use_ssl = getenv('OBJECTSTORE_S3_SSL'); |   $use_ssl = getenv('OBJECTSTORE_S3_SSL'); | ||||||
|   $use_path = getenv('OBJECTSTORE_S3_USEPATH_STYLE'); |   $use_path = getenv('OBJECTSTORE_S3_USEPATH_STYLE'); | ||||||
|  |   $autocreate = getenv('OBJECTSTORE_S3_AUTOCREATE'); | ||||||
|   $CONFIG = array( |   $CONFIG = array( | ||||||
|     'objectstore' => array( |     'objectstore' => array( | ||||||
|       'class' => '\OC\Files\ObjectStore\S3', |       'class' => '\OC\Files\ObjectStore\S3', | ||||||
| @ -12,6 +13,8 @@ if (getenv('OBJECTSTORE_S3_BUCKET')) { | |||||||
|         'region' => getenv('OBJECTSTORE_S3_REGION') ?: '', |         'region' => getenv('OBJECTSTORE_S3_REGION') ?: '', | ||||||
|         'hostname' => getenv('OBJECTSTORE_S3_HOST') ?: '', |         'hostname' => getenv('OBJECTSTORE_S3_HOST') ?: '', | ||||||
|         'port' => getenv('OBJECTSTORE_S3_PORT') ?: '', |         'port' => getenv('OBJECTSTORE_S3_PORT') ?: '', | ||||||
|  |         'objectPrefix' => getenv("OBJECTSTORE_S3_OBJECT_PREFIX") ? getenv("OBJECTSTORE_S3_OBJECT_PREFIX") : "urn:oid:", | ||||||
|  |         'autocreate' => (strtolower($autocreate) === 'false' || $autocreate == false) ? false : true, | ||||||
|         'use_ssl' => (strtolower($use_ssl) === 'false' || $use_ssl == false) ? false : true, |         'use_ssl' => (strtolower($use_ssl) === 'false' || $use_ssl == false) ? false : true, | ||||||
|         // required for some non Amazon S3 implementations
 |         // required for some non Amazon S3 implementations
 | ||||||
|         'use_path_style' => $use_path == true && strtolower($use_path) !== 'false' |         'use_path_style' => $use_path == true && strtolower($use_path) !== 'false' | ||||||
|  | |||||||
| @ -2,6 +2,7 @@ | |||||||
| if (getenv('OBJECTSTORE_S3_BUCKET')) { | if (getenv('OBJECTSTORE_S3_BUCKET')) { | ||||||
|   $use_ssl = getenv('OBJECTSTORE_S3_SSL'); |   $use_ssl = getenv('OBJECTSTORE_S3_SSL'); | ||||||
|   $use_path = getenv('OBJECTSTORE_S3_USEPATH_STYLE'); |   $use_path = getenv('OBJECTSTORE_S3_USEPATH_STYLE'); | ||||||
|  |   $autocreate = getenv('OBJECTSTORE_S3_AUTOCREATE'); | ||||||
|   $CONFIG = array( |   $CONFIG = array( | ||||||
|     'objectstore' => array( |     'objectstore' => array( | ||||||
|       'class' => '\OC\Files\ObjectStore\S3', |       'class' => '\OC\Files\ObjectStore\S3', | ||||||
| @ -12,6 +13,8 @@ if (getenv('OBJECTSTORE_S3_BUCKET')) { | |||||||
|         'region' => getenv('OBJECTSTORE_S3_REGION') ?: '', |         'region' => getenv('OBJECTSTORE_S3_REGION') ?: '', | ||||||
|         'hostname' => getenv('OBJECTSTORE_S3_HOST') ?: '', |         'hostname' => getenv('OBJECTSTORE_S3_HOST') ?: '', | ||||||
|         'port' => getenv('OBJECTSTORE_S3_PORT') ?: '', |         'port' => getenv('OBJECTSTORE_S3_PORT') ?: '', | ||||||
|  |         'objectPrefix' => getenv("OBJECTSTORE_S3_OBJECT_PREFIX") ? getenv("OBJECTSTORE_S3_OBJECT_PREFIX") : "urn:oid:", | ||||||
|  |         'autocreate' => (strtolower($autocreate) === 'false' || $autocreate == false) ? false : true, | ||||||
|         'use_ssl' => (strtolower($use_ssl) === 'false' || $use_ssl == false) ? false : true, |         'use_ssl' => (strtolower($use_ssl) === 'false' || $use_ssl == false) ? false : true, | ||||||
|         // required for some non Amazon S3 implementations
 |         // required for some non Amazon S3 implementations
 | ||||||
|         'use_path_style' => $use_path == true && strtolower($use_path) !== 'false' |         'use_path_style' => $use_path == true && strtolower($use_path) !== 'false' | ||||||
|  | |||||||
| @ -2,6 +2,7 @@ | |||||||
| if (getenv('OBJECTSTORE_S3_BUCKET')) { | if (getenv('OBJECTSTORE_S3_BUCKET')) { | ||||||
|   $use_ssl = getenv('OBJECTSTORE_S3_SSL'); |   $use_ssl = getenv('OBJECTSTORE_S3_SSL'); | ||||||
|   $use_path = getenv('OBJECTSTORE_S3_USEPATH_STYLE'); |   $use_path = getenv('OBJECTSTORE_S3_USEPATH_STYLE'); | ||||||
|  |   $autocreate = getenv('OBJECTSTORE_S3_AUTOCREATE'); | ||||||
|   $CONFIG = array( |   $CONFIG = array( | ||||||
|     'objectstore' => array( |     'objectstore' => array( | ||||||
|       'class' => '\OC\Files\ObjectStore\S3', |       'class' => '\OC\Files\ObjectStore\S3', | ||||||
| @ -12,6 +13,8 @@ if (getenv('OBJECTSTORE_S3_BUCKET')) { | |||||||
|         'region' => getenv('OBJECTSTORE_S3_REGION') ?: '', |         'region' => getenv('OBJECTSTORE_S3_REGION') ?: '', | ||||||
|         'hostname' => getenv('OBJECTSTORE_S3_HOST') ?: '', |         'hostname' => getenv('OBJECTSTORE_S3_HOST') ?: '', | ||||||
|         'port' => getenv('OBJECTSTORE_S3_PORT') ?: '', |         'port' => getenv('OBJECTSTORE_S3_PORT') ?: '', | ||||||
|  |         'objectPrefix' => getenv("OBJECTSTORE_S3_OBJECT_PREFIX") ? getenv("OBJECTSTORE_S3_OBJECT_PREFIX") : "urn:oid:", | ||||||
|  |         'autocreate' => (strtolower($autocreate) === 'false' || $autocreate == false) ? false : true, | ||||||
|         'use_ssl' => (strtolower($use_ssl) === 'false' || $use_ssl == false) ? false : true, |         'use_ssl' => (strtolower($use_ssl) === 'false' || $use_ssl == false) ? false : true, | ||||||
|         // required for some non Amazon S3 implementations
 |         // required for some non Amazon S3 implementations
 | ||||||
|         'use_path_style' => $use_path == true && strtolower($use_path) !== 'false' |         'use_path_style' => $use_path == true && strtolower($use_path) !== 'false' | ||||||
|  | |||||||
| @ -2,6 +2,7 @@ | |||||||
| if (getenv('OBJECTSTORE_S3_BUCKET')) { | if (getenv('OBJECTSTORE_S3_BUCKET')) { | ||||||
|   $use_ssl = getenv('OBJECTSTORE_S3_SSL'); |   $use_ssl = getenv('OBJECTSTORE_S3_SSL'); | ||||||
|   $use_path = getenv('OBJECTSTORE_S3_USEPATH_STYLE'); |   $use_path = getenv('OBJECTSTORE_S3_USEPATH_STYLE'); | ||||||
|  |   $autocreate = getenv('OBJECTSTORE_S3_AUTOCREATE'); | ||||||
|   $CONFIG = array( |   $CONFIG = array( | ||||||
|     'objectstore' => array( |     'objectstore' => array( | ||||||
|       'class' => '\OC\Files\ObjectStore\S3', |       'class' => '\OC\Files\ObjectStore\S3', | ||||||
| @ -12,6 +13,8 @@ if (getenv('OBJECTSTORE_S3_BUCKET')) { | |||||||
|         'region' => getenv('OBJECTSTORE_S3_REGION') ?: '', |         'region' => getenv('OBJECTSTORE_S3_REGION') ?: '', | ||||||
|         'hostname' => getenv('OBJECTSTORE_S3_HOST') ?: '', |         'hostname' => getenv('OBJECTSTORE_S3_HOST') ?: '', | ||||||
|         'port' => getenv('OBJECTSTORE_S3_PORT') ?: '', |         'port' => getenv('OBJECTSTORE_S3_PORT') ?: '', | ||||||
|  |         'objectPrefix' => getenv("OBJECTSTORE_S3_OBJECT_PREFIX") ? getenv("OBJECTSTORE_S3_OBJECT_PREFIX") : "urn:oid:", | ||||||
|  |         'autocreate' => (strtolower($autocreate) === 'false' || $autocreate == false) ? false : true, | ||||||
|         'use_ssl' => (strtolower($use_ssl) === 'false' || $use_ssl == false) ? false : true, |         'use_ssl' => (strtolower($use_ssl) === 'false' || $use_ssl == false) ? false : true, | ||||||
|         // required for some non Amazon S3 implementations
 |         // required for some non Amazon S3 implementations
 | ||||||
|         'use_path_style' => $use_path == true && strtolower($use_path) !== 'false' |         'use_path_style' => $use_path == true && strtolower($use_path) !== 'false' | ||||||
|  | |||||||
| @ -2,6 +2,7 @@ | |||||||
| if (getenv('OBJECTSTORE_S3_BUCKET')) { | if (getenv('OBJECTSTORE_S3_BUCKET')) { | ||||||
|   $use_ssl = getenv('OBJECTSTORE_S3_SSL'); |   $use_ssl = getenv('OBJECTSTORE_S3_SSL'); | ||||||
|   $use_path = getenv('OBJECTSTORE_S3_USEPATH_STYLE'); |   $use_path = getenv('OBJECTSTORE_S3_USEPATH_STYLE'); | ||||||
|  |   $autocreate = getenv('OBJECTSTORE_S3_AUTOCREATE'); | ||||||
|   $CONFIG = array( |   $CONFIG = array( | ||||||
|     'objectstore' => array( |     'objectstore' => array( | ||||||
|       'class' => '\OC\Files\ObjectStore\S3', |       'class' => '\OC\Files\ObjectStore\S3', | ||||||
| @ -12,6 +13,8 @@ if (getenv('OBJECTSTORE_S3_BUCKET')) { | |||||||
|         'region' => getenv('OBJECTSTORE_S3_REGION') ?: '', |         'region' => getenv('OBJECTSTORE_S3_REGION') ?: '', | ||||||
|         'hostname' => getenv('OBJECTSTORE_S3_HOST') ?: '', |         'hostname' => getenv('OBJECTSTORE_S3_HOST') ?: '', | ||||||
|         'port' => getenv('OBJECTSTORE_S3_PORT') ?: '', |         'port' => getenv('OBJECTSTORE_S3_PORT') ?: '', | ||||||
|  |         'objectPrefix' => getenv("OBJECTSTORE_S3_OBJECT_PREFIX") ? getenv("OBJECTSTORE_S3_OBJECT_PREFIX") : "urn:oid:", | ||||||
|  |         'autocreate' => (strtolower($autocreate) === 'false' || $autocreate == false) ? false : true, | ||||||
|         'use_ssl' => (strtolower($use_ssl) === 'false' || $use_ssl == false) ? false : true, |         'use_ssl' => (strtolower($use_ssl) === 'false' || $use_ssl == false) ? false : true, | ||||||
|         // required for some non Amazon S3 implementations
 |         // required for some non Amazon S3 implementations
 | ||||||
|         'use_path_style' => $use_path == true && strtolower($use_path) !== 'false' |         'use_path_style' => $use_path == true && strtolower($use_path) !== 'false' | ||||||
|  | |||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user