[damned-lies] chore: remove SSH configuration from entrypoint



commit 268b7ff6a7a7e7a4d3f3bdf9750020f095df91aa
Author: Guillaume Bernard <contact guillaume-bernard fr>
Date:   Tue May 10 09:31:39 2022 +0200

    chore: remove SSH configuration from entrypoint
    
    SSH configuration will land via OpenShift CM

 containers/production/configuration/entrypoint.sh.jinja2 | 8 --------
 1 file changed, 8 deletions(-)
---
diff --git a/containers/production/configuration/entrypoint.sh.jinja2 
b/containers/production/configuration/entrypoint.sh.jinja2
index b8f40d4a..12b82e2a 100755
--- a/containers/production/configuration/entrypoint.sh.jinja2
+++ b/containers/production/configuration/entrypoint.sh.jinja2
@@ -1,7 +1,6 @@
 #!/bin/bash
 
 declare -r LOCAL_SETTINGS_FILE="{{ damned_lies_project_directory }}/damnedlies/local_settings.py"
-declare -r SSH_CONFIG_URL="https://gitlab.gnome.org/Infrastructure/damned-lies/-/raw/oscp/httpd/ssh_config";
 
 {% if kind == "production" %}
 # Database configuration
@@ -17,13 +16,6 @@ sed -i "s/\$GITLAB_TOKEN/${GITLAB_TOKEN}/" "${LOCAL_SETTINGS_FILE}"
 # The domain under which the application is publicly available
 sed -i "s/\$SITE_DOMAIN/${SITE_DOMAIN}/" "${LOCAL_SETTINGS_FILE}"
 
-echo "Populating .ssh for the {{ process.user }} user"
-mkdir -p "${HOME}/.ssh"
-ln -s "${HOME}/.ssh_secret/ssh-privatekey" "${HOME}/.ssh/ssh-privatekey"
-ln -s "${HOME}/.ssh_secret/.gitconfig" "${HOME}/.gitconfig"
-wget "${SSH_CONFIG_URL}" -O "${HOME}/.ssh/config"
-{% endif %}
-
 echo "Applying migrations"
 {{ process.virtual_env }}/bin/python manage.py migrate
 


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]