Skip to content

Commit cf30668

Browse files
author
GitHub Workflow
committed
Runs update.sh
1 parent e1b1923 commit cf30668

9 files changed

Lines changed: 144 additions & 18 deletions

File tree

24/apache/config/s3.config.php

Lines changed: 16 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,6 @@
99
'class' => '\OC\Files\ObjectStore\S3',
1010
'arguments' => array(
1111
'bucket' => getenv('OBJECTSTORE_S3_BUCKET'),
12-
'key' => getenv('OBJECTSTORE_S3_KEY') ?: '',
13-
'secret' => getenv('OBJECTSTORE_S3_SECRET') ?: '',
1412
'region' => getenv('OBJECTSTORE_S3_REGION') ?: '',
1513
'hostname' => getenv('OBJECTSTORE_S3_HOST') ?: '',
1614
'port' => getenv('OBJECTSTORE_S3_PORT') ?: '',
@@ -24,4 +22,20 @@
2422
)
2523
)
2624
);
25+
26+
if (getenv('OBJECTSTORE_S3_KEY_FILE') && file_exists(getenv('OBJECTSTORE_S3_KEY_FILE'))) {
27+
$CONFIG['objectstore']['arguments']['key'] = trim(file_get_contents(getenv('OBJECTSTORE_S3_KEY_FILE')));
28+
} elseif (getenv('OBJECTSTORE_S3_KEY')) {
29+
$CONFIG['objectstore']['arguments']['key'] = getenv('OBJECTSTORE_S3_KEY');
30+
} else {
31+
$CONFIG['objectstore']['arguments']['key'] = '';
32+
}
33+
34+
if (getenv('OBJECTSTORE_S3_SECRET_FILE') && file_exists(getenv('OBJECTSTORE_S3_SECRET_FILE'))) {
35+
$CONFIG['objectstore']['arguments']['secret'] = trim(file_get_contents(getenv('OBJECTSTORE_S3_SECRET_FILE')));
36+
} elseif (getenv('OBJECTSTORE_S3_SECRET')) {
37+
$CONFIG['objectstore']['arguments']['secret'] = getenv('OBJECTSTORE_S3_SECRET');
38+
} else {
39+
$CONFIG['objectstore']['arguments']['secret'] = '';
40+
}
2741
}

24/fpm-alpine/config/s3.config.php

Lines changed: 16 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,6 @@
99
'class' => '\OC\Files\ObjectStore\S3',
1010
'arguments' => array(
1111
'bucket' => getenv('OBJECTSTORE_S3_BUCKET'),
12-
'key' => getenv('OBJECTSTORE_S3_KEY') ?: '',
13-
'secret' => getenv('OBJECTSTORE_S3_SECRET') ?: '',
1412
'region' => getenv('OBJECTSTORE_S3_REGION') ?: '',
1513
'hostname' => getenv('OBJECTSTORE_S3_HOST') ?: '',
1614
'port' => getenv('OBJECTSTORE_S3_PORT') ?: '',
@@ -24,4 +22,20 @@
2422
)
2523
)
2624
);
25+
26+
if (getenv('OBJECTSTORE_S3_KEY_FILE') && file_exists(getenv('OBJECTSTORE_S3_KEY_FILE'))) {
27+
$CONFIG['objectstore']['arguments']['key'] = trim(file_get_contents(getenv('OBJECTSTORE_S3_KEY_FILE')));
28+
} elseif (getenv('OBJECTSTORE_S3_KEY')) {
29+
$CONFIG['objectstore']['arguments']['key'] = getenv('OBJECTSTORE_S3_KEY');
30+
} else {
31+
$CONFIG['objectstore']['arguments']['key'] = '';
32+
}
33+
34+
if (getenv('OBJECTSTORE_S3_SECRET_FILE') && file_exists(getenv('OBJECTSTORE_S3_SECRET_FILE'))) {
35+
$CONFIG['objectstore']['arguments']['secret'] = trim(file_get_contents(getenv('OBJECTSTORE_S3_SECRET_FILE')));
36+
} elseif (getenv('OBJECTSTORE_S3_SECRET')) {
37+
$CONFIG['objectstore']['arguments']['secret'] = getenv('OBJECTSTORE_S3_SECRET');
38+
} else {
39+
$CONFIG['objectstore']['arguments']['secret'] = '';
40+
}
2741
}

24/fpm/config/s3.config.php

Lines changed: 16 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,6 @@
99
'class' => '\OC\Files\ObjectStore\S3',
1010
'arguments' => array(
1111
'bucket' => getenv('OBJECTSTORE_S3_BUCKET'),
12-
'key' => getenv('OBJECTSTORE_S3_KEY') ?: '',
13-
'secret' => getenv('OBJECTSTORE_S3_SECRET') ?: '',
1412
'region' => getenv('OBJECTSTORE_S3_REGION') ?: '',
1513
'hostname' => getenv('OBJECTSTORE_S3_HOST') ?: '',
1614
'port' => getenv('OBJECTSTORE_S3_PORT') ?: '',
@@ -24,4 +22,20 @@
2422
)
2523
)
2624
);
25+
26+
if (getenv('OBJECTSTORE_S3_KEY_FILE') && file_exists(getenv('OBJECTSTORE_S3_KEY_FILE'))) {
27+
$CONFIG['objectstore']['arguments']['key'] = trim(file_get_contents(getenv('OBJECTSTORE_S3_KEY_FILE')));
28+
} elseif (getenv('OBJECTSTORE_S3_KEY')) {
29+
$CONFIG['objectstore']['arguments']['key'] = getenv('OBJECTSTORE_S3_KEY');
30+
} else {
31+
$CONFIG['objectstore']['arguments']['key'] = '';
32+
}
33+
34+
if (getenv('OBJECTSTORE_S3_SECRET_FILE') && file_exists(getenv('OBJECTSTORE_S3_SECRET_FILE'))) {
35+
$CONFIG['objectstore']['arguments']['secret'] = trim(file_get_contents(getenv('OBJECTSTORE_S3_SECRET_FILE')));
36+
} elseif (getenv('OBJECTSTORE_S3_SECRET')) {
37+
$CONFIG['objectstore']['arguments']['secret'] = getenv('OBJECTSTORE_S3_SECRET');
38+
} else {
39+
$CONFIG['objectstore']['arguments']['secret'] = '';
40+
}
2741
}

25/apache/config/s3.config.php

Lines changed: 16 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,6 @@
99
'class' => '\OC\Files\ObjectStore\S3',
1010
'arguments' => array(
1111
'bucket' => getenv('OBJECTSTORE_S3_BUCKET'),
12-
'key' => getenv('OBJECTSTORE_S3_KEY') ?: '',
13-
'secret' => getenv('OBJECTSTORE_S3_SECRET') ?: '',
1412
'region' => getenv('OBJECTSTORE_S3_REGION') ?: '',
1513
'hostname' => getenv('OBJECTSTORE_S3_HOST') ?: '',
1614
'port' => getenv('OBJECTSTORE_S3_PORT') ?: '',
@@ -24,4 +22,20 @@
2422
)
2523
)
2624
);
25+
26+
if (getenv('OBJECTSTORE_S3_KEY_FILE') && file_exists(getenv('OBJECTSTORE_S3_KEY_FILE'))) {
27+
$CONFIG['objectstore']['arguments']['key'] = trim(file_get_contents(getenv('OBJECTSTORE_S3_KEY_FILE')));
28+
} elseif (getenv('OBJECTSTORE_S3_KEY')) {
29+
$CONFIG['objectstore']['arguments']['key'] = getenv('OBJECTSTORE_S3_KEY');
30+
} else {
31+
$CONFIG['objectstore']['arguments']['key'] = '';
32+
}
33+
34+
if (getenv('OBJECTSTORE_S3_SECRET_FILE') && file_exists(getenv('OBJECTSTORE_S3_SECRET_FILE'))) {
35+
$CONFIG['objectstore']['arguments']['secret'] = trim(file_get_contents(getenv('OBJECTSTORE_S3_SECRET_FILE')));
36+
} elseif (getenv('OBJECTSTORE_S3_SECRET')) {
37+
$CONFIG['objectstore']['arguments']['secret'] = getenv('OBJECTSTORE_S3_SECRET');
38+
} else {
39+
$CONFIG['objectstore']['arguments']['secret'] = '';
40+
}
2741
}

25/fpm-alpine/config/s3.config.php

Lines changed: 16 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,6 @@
99
'class' => '\OC\Files\ObjectStore\S3',
1010
'arguments' => array(
1111
'bucket' => getenv('OBJECTSTORE_S3_BUCKET'),
12-
'key' => getenv('OBJECTSTORE_S3_KEY') ?: '',
13-
'secret' => getenv('OBJECTSTORE_S3_SECRET') ?: '',
1412
'region' => getenv('OBJECTSTORE_S3_REGION') ?: '',
1513
'hostname' => getenv('OBJECTSTORE_S3_HOST') ?: '',
1614
'port' => getenv('OBJECTSTORE_S3_PORT') ?: '',
@@ -24,4 +22,20 @@
2422
)
2523
)
2624
);
25+
26+
if (getenv('OBJECTSTORE_S3_KEY_FILE') && file_exists(getenv('OBJECTSTORE_S3_KEY_FILE'))) {
27+
$CONFIG['objectstore']['arguments']['key'] = trim(file_get_contents(getenv('OBJECTSTORE_S3_KEY_FILE')));
28+
} elseif (getenv('OBJECTSTORE_S3_KEY')) {
29+
$CONFIG['objectstore']['arguments']['key'] = getenv('OBJECTSTORE_S3_KEY');
30+
} else {
31+
$CONFIG['objectstore']['arguments']['key'] = '';
32+
}
33+
34+
if (getenv('OBJECTSTORE_S3_SECRET_FILE') && file_exists(getenv('OBJECTSTORE_S3_SECRET_FILE'))) {
35+
$CONFIG['objectstore']['arguments']['secret'] = trim(file_get_contents(getenv('OBJECTSTORE_S3_SECRET_FILE')));
36+
} elseif (getenv('OBJECTSTORE_S3_SECRET')) {
37+
$CONFIG['objectstore']['arguments']['secret'] = getenv('OBJECTSTORE_S3_SECRET');
38+
} else {
39+
$CONFIG['objectstore']['arguments']['secret'] = '';
40+
}
2741
}

25/fpm/config/s3.config.php

Lines changed: 16 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,6 @@
99
'class' => '\OC\Files\ObjectStore\S3',
1010
'arguments' => array(
1111
'bucket' => getenv('OBJECTSTORE_S3_BUCKET'),
12-
'key' => getenv('OBJECTSTORE_S3_KEY') ?: '',
13-
'secret' => getenv('OBJECTSTORE_S3_SECRET') ?: '',
1412
'region' => getenv('OBJECTSTORE_S3_REGION') ?: '',
1513
'hostname' => getenv('OBJECTSTORE_S3_HOST') ?: '',
1614
'port' => getenv('OBJECTSTORE_S3_PORT') ?: '',
@@ -24,4 +22,20 @@
2422
)
2523
)
2624
);
25+
26+
if (getenv('OBJECTSTORE_S3_KEY_FILE') && file_exists(getenv('OBJECTSTORE_S3_KEY_FILE'))) {
27+
$CONFIG['objectstore']['arguments']['key'] = trim(file_get_contents(getenv('OBJECTSTORE_S3_KEY_FILE')));
28+
} elseif (getenv('OBJECTSTORE_S3_KEY')) {
29+
$CONFIG['objectstore']['arguments']['key'] = getenv('OBJECTSTORE_S3_KEY');
30+
} else {
31+
$CONFIG['objectstore']['arguments']['key'] = '';
32+
}
33+
34+
if (getenv('OBJECTSTORE_S3_SECRET_FILE') && file_exists(getenv('OBJECTSTORE_S3_SECRET_FILE'))) {
35+
$CONFIG['objectstore']['arguments']['secret'] = trim(file_get_contents(getenv('OBJECTSTORE_S3_SECRET_FILE')));
36+
} elseif (getenv('OBJECTSTORE_S3_SECRET')) {
37+
$CONFIG['objectstore']['arguments']['secret'] = getenv('OBJECTSTORE_S3_SECRET');
38+
} else {
39+
$CONFIG['objectstore']['arguments']['secret'] = '';
40+
}
2741
}

26/apache/config/s3.config.php

Lines changed: 16 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,6 @@
99
'class' => '\OC\Files\ObjectStore\S3',
1010
'arguments' => array(
1111
'bucket' => getenv('OBJECTSTORE_S3_BUCKET'),
12-
'key' => getenv('OBJECTSTORE_S3_KEY') ?: '',
13-
'secret' => getenv('OBJECTSTORE_S3_SECRET') ?: '',
1412
'region' => getenv('OBJECTSTORE_S3_REGION') ?: '',
1513
'hostname' => getenv('OBJECTSTORE_S3_HOST') ?: '',
1614
'port' => getenv('OBJECTSTORE_S3_PORT') ?: '',
@@ -24,4 +22,20 @@
2422
)
2523
)
2624
);
25+
26+
if (getenv('OBJECTSTORE_S3_KEY_FILE') && file_exists(getenv('OBJECTSTORE_S3_KEY_FILE'))) {
27+
$CONFIG['objectstore']['arguments']['key'] = trim(file_get_contents(getenv('OBJECTSTORE_S3_KEY_FILE')));
28+
} elseif (getenv('OBJECTSTORE_S3_KEY')) {
29+
$CONFIG['objectstore']['arguments']['key'] = getenv('OBJECTSTORE_S3_KEY');
30+
} else {
31+
$CONFIG['objectstore']['arguments']['key'] = '';
32+
}
33+
34+
if (getenv('OBJECTSTORE_S3_SECRET_FILE') && file_exists(getenv('OBJECTSTORE_S3_SECRET_FILE'))) {
35+
$CONFIG['objectstore']['arguments']['secret'] = trim(file_get_contents(getenv('OBJECTSTORE_S3_SECRET_FILE')));
36+
} elseif (getenv('OBJECTSTORE_S3_SECRET')) {
37+
$CONFIG['objectstore']['arguments']['secret'] = getenv('OBJECTSTORE_S3_SECRET');
38+
} else {
39+
$CONFIG['objectstore']['arguments']['secret'] = '';
40+
}
2741
}

26/fpm-alpine/config/s3.config.php

Lines changed: 16 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,6 @@
99
'class' => '\OC\Files\ObjectStore\S3',
1010
'arguments' => array(
1111
'bucket' => getenv('OBJECTSTORE_S3_BUCKET'),
12-
'key' => getenv('OBJECTSTORE_S3_KEY') ?: '',
13-
'secret' => getenv('OBJECTSTORE_S3_SECRET') ?: '',
1412
'region' => getenv('OBJECTSTORE_S3_REGION') ?: '',
1513
'hostname' => getenv('OBJECTSTORE_S3_HOST') ?: '',
1614
'port' => getenv('OBJECTSTORE_S3_PORT') ?: '',
@@ -24,4 +22,20 @@
2422
)
2523
)
2624
);
25+
26+
if (getenv('OBJECTSTORE_S3_KEY_FILE') && file_exists(getenv('OBJECTSTORE_S3_KEY_FILE'))) {
27+
$CONFIG['objectstore']['arguments']['key'] = trim(file_get_contents(getenv('OBJECTSTORE_S3_KEY_FILE')));
28+
} elseif (getenv('OBJECTSTORE_S3_KEY')) {
29+
$CONFIG['objectstore']['arguments']['key'] = getenv('OBJECTSTORE_S3_KEY');
30+
} else {
31+
$CONFIG['objectstore']['arguments']['key'] = '';
32+
}
33+
34+
if (getenv('OBJECTSTORE_S3_SECRET_FILE') && file_exists(getenv('OBJECTSTORE_S3_SECRET_FILE'))) {
35+
$CONFIG['objectstore']['arguments']['secret'] = trim(file_get_contents(getenv('OBJECTSTORE_S3_SECRET_FILE')));
36+
} elseif (getenv('OBJECTSTORE_S3_SECRET')) {
37+
$CONFIG['objectstore']['arguments']['secret'] = getenv('OBJECTSTORE_S3_SECRET');
38+
} else {
39+
$CONFIG['objectstore']['arguments']['secret'] = '';
40+
}
2741
}

26/fpm/config/s3.config.php

Lines changed: 16 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,6 @@
99
'class' => '\OC\Files\ObjectStore\S3',
1010
'arguments' => array(
1111
'bucket' => getenv('OBJECTSTORE_S3_BUCKET'),
12-
'key' => getenv('OBJECTSTORE_S3_KEY') ?: '',
13-
'secret' => getenv('OBJECTSTORE_S3_SECRET') ?: '',
1412
'region' => getenv('OBJECTSTORE_S3_REGION') ?: '',
1513
'hostname' => getenv('OBJECTSTORE_S3_HOST') ?: '',
1614
'port' => getenv('OBJECTSTORE_S3_PORT') ?: '',
@@ -24,4 +22,20 @@
2422
)
2523
)
2624
);
25+
26+
if (getenv('OBJECTSTORE_S3_KEY_FILE') && file_exists(getenv('OBJECTSTORE_S3_KEY_FILE'))) {
27+
$CONFIG['objectstore']['arguments']['key'] = trim(file_get_contents(getenv('OBJECTSTORE_S3_KEY_FILE')));
28+
} elseif (getenv('OBJECTSTORE_S3_KEY')) {
29+
$CONFIG['objectstore']['arguments']['key'] = getenv('OBJECTSTORE_S3_KEY');
30+
} else {
31+
$CONFIG['objectstore']['arguments']['key'] = '';
32+
}
33+
34+
if (getenv('OBJECTSTORE_S3_SECRET_FILE') && file_exists(getenv('OBJECTSTORE_S3_SECRET_FILE'))) {
35+
$CONFIG['objectstore']['arguments']['secret'] = trim(file_get_contents(getenv('OBJECTSTORE_S3_SECRET_FILE')));
36+
} elseif (getenv('OBJECTSTORE_S3_SECRET')) {
37+
$CONFIG['objectstore']['arguments']['secret'] = getenv('OBJECTSTORE_S3_SECRET');
38+
} else {
39+
$CONFIG['objectstore']['arguments']['secret'] = '';
40+
}
2741
}

0 commit comments

Comments
 (0)