From ba26794dd01fd5cee3bafbc1ef899b9820c77517 Mon Sep 17 00:00:00 2001 From: Jean-Baptiste Holcroft Date: Wed, 4 Oct 2017 13:42:18 +0200 Subject: [PATCH] Hub finalization --- conf/settings.py | 2 +- scripts/install | 3 +++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/conf/settings.py b/conf/settings.py index 865ac71..1e65811 100644 --- a/conf/settings.py +++ b/conf/settings.py @@ -191,7 +191,7 @@ TEMPLATES = [ # GitHub username for sending pull requests. # Please see the documentation for more details. -GITHUB_USERNAME = None +GITHUB_USERNAME = "__GITHUBUSER__" # Authentication configuration AUTHENTICATION_BACKENDS = ( diff --git a/scripts/install b/scripts/install index b4d8ad3..f3badc0 100755 --- a/scripts/install +++ b/scripts/install @@ -150,6 +150,8 @@ cp ../conf/hub_config "$final_path/.config/hub" ynh_replace_string "__GITHUBUSER__" "$github_account" "$final_path/.config/hub" ynh_replace_string "__GITHUBTOKEN__" "$github_token" "$final_path/.config/hub" +echo "alias git=hub" > "$final_path/.bashrc" + #================================================= # SPECIFIC SETUP #================================================= @@ -207,6 +209,7 @@ ynh_replace_string "__PATHURL__" "$path_url" "$final_path/venv/lib/python2.7 ynh_replace_string "__FINALPATH__" "$final_path" "$final_path/venv/lib/python2.7/site-packages/weblate/settings.py" ynh_replace_string "__SMTPPWD__" "$smtp_pwd" "$final_path/venv/lib/python2.7/site-packages/weblate/settings.py" ynh_replace_string "__MEMCPORT__" "$memc_port" "$final_path/venv/lib/python2.7/site-packages/weblate/settings.py" +ynh_replace_string "__GITHUBUSER__" "$github_account" "$final_path/venv/lib/python2.7/site-packages/weblate/settings.py" #================================================= # SPECIFIC SETUP Filling up the database