feat(docker): allow configurable SSH_CMDLINE in git service

Signed-off-by: Kevin Morris <kevr@0cost.org>
This commit is contained in:
Kevin Morris 2021-11-20 19:03:35 -08:00
parent ba3ef742ce
commit a1e547c057
No known key found for this signature in database
GPG key ID: F7E46DED420788F3
3 changed files with 7 additions and 2 deletions

View file

@ -54,8 +54,8 @@ fi
# Set some defaults needed for pathing and ssh uris.
sed -ri "s|^(repo-path) = .+|\1 = /aurweb/aur.git/|" $AUR_CONFIG_DEFAULTS
ssh_cmdline='ssh ssh://aur@localhost:2222'
sed -ri "s|^(ssh-cmdline) = .+|\1 = $ssh_cmdline|" $AUR_CONFIG_DEFAULTS
# SSH_CMDLINE can be provided via override in docker-compose.aur-dev.yml.
sed -ri "s|^(ssh-cmdline) = .+$|\1 = ${SSH_CMDLINE}|" $AUR_CONFIG_DEFAULTS
# Setup SSH Keys.
ssh-keygen -A