Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
et-iedo-public
debian-packages
gitlab-package-build
Commits
61d2ce45
Commit
61d2ce45
authored
Dec 09, 2021
by
Adam Lewenberg
Browse files
more work on dput (take 5)
parent
9c5946b3
Pipeline
#31629
passed with stages
in 6 seconds
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
dput.cf.template
View file @
61d2ce45
...
...
@@ -24,7 +24,7 @@ method = scp
fqdn = debian-repo-dev.stanford.edu
allowed_distributions = ^(%%ALLOWED_DISTRIBUTIONS_RX%%)$
incoming = /srv/repos/stanford/incoming
post_upload_command = ssh %%DPUT_USER%%@debian-repo-dev.stanford.edu sudo reprepro-upload stanford
post_upload_command = ssh
-i %%SSH_PRIVATE_KEY_PATH%%
%%DPUT_USER%%@debian-repo-dev.stanford.edu sudo reprepro-upload stanford
[local-dev]
method = scp
...
...
generate-dput-conf.sh
View file @
61d2ce45
...
...
@@ -25,6 +25,6 @@ AD_REGEX=$(printf "|%s" "${AD_ARRAY[@]}")
AD_REGEX
=
${
AD_REGEX
:1
}
cat
dput.cf.template
\
|
sed
"s/%%ALLOWED_DISTRIBUTIONS_RX%%/
$AD_REGEX
/g"
\
|
sed
"s/%%ALLOWED_DISTRIBUTIONS_RX%%/
$AD_REGEX
/g"
\
|
sed
"s@%%SSH_PRIVATE_KEY_PATH%%@
$SSH_PRIVATE_KEY_PATH
@g"
\
|
sed
"s@%%DPUT_USER%%@
$DPUT_USER
@g"
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