Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
S
s3-conf
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
certo
s3-conf
Commits
6e372320
Commit
6e372320
authored
Jun 10, 2026
by
Vladimir Bashkirtsev
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Added bucket config
parent
ae1aca86
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
16 additions
and
0 deletions
+16
-0
Makefile
Makefile
+1
-0
s3
s3
+15
-0
No files found.
Makefile
View file @
6e372320
...
...
@@ -9,5 +9,6 @@ config s3 'credentials'
option
uri
''
option
accesskey
''
option
secretkey
''
option
bucket
''
endef
export
S3_CONFIG
s3
View file @
6e372320
...
...
@@ -18,6 +18,7 @@ entry_execute_method_root_S3() {
common_execute_method_param
"
$DMROOT
.S3.URI"
"1"
"s3_get_uri"
"s3_set_uri"
common_execute_method_param
"
$DMROOT
.S3.AccessKey"
"1"
"s3_get_accesskey"
"s3_set_accesskey"
common_execute_method_param
"
$DMROOT
.S3.SecretKey"
"1"
""
"s3_set_secretkey"
common_execute_method_param
"
$DMROOT
.S3.Bucket"
"1"
"s3_get_bucket"
"s3_set_bucket"
return
0
;
;;
esac
...
...
@@ -62,3 +63,17 @@ s3_set_secretkey() {
chmod
a+r /etc/config/s3
fi
}
s3_get_bucket
()
{
echo
`
$UCI_GET
s3.credentials.bucket
`
}
s3_set_bucket
()
{
local
bucket
=
`
$UCI_GET
s3.credentials.bucket
`
if
[
"
$bucket
"
!=
"
$1
"
]
;
then
$UCI_SET
s3.credentials.bucket
=
"
$1
"
$UCI_COMMIT
chmod
a+r /etc/config/s3
fi
}
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment