Commit 61d2ce45 authored by Adam Lewenberg's avatar Adam Lewenberg
Browse files

more work on dput (take 5)

parent 9c5946b3
Pipeline #31629 passed with stages
in 6 seconds
......@@ -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
......
......@@ -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"
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment