mirror of
https://github.com/YunoHost-Apps/weblate_ynh.git
synced 2024-10-01 13:35:04 +02:00
Fix hub config
This commit is contained in:
parent
60b25905c1
commit
58ca24f71b
3 changed files with 15 additions and 3 deletions
|
@ -1,4 +1,4 @@
|
||||||
github.com:
|
__FORGE_WEBSITE__:
|
||||||
- user: __GITHUB_ACCOUNT__
|
- user: __FORGE_USERNAME__
|
||||||
oauth_token: __GITHUB_TOKEN__
|
oauth_token: __FORGE_TOKEN__
|
||||||
protocol: https
|
protocol: https
|
||||||
|
|
|
@ -132,6 +132,12 @@ ynh_secure_remove --file="$tempdir"
|
||||||
#=================================================
|
#=================================================
|
||||||
ynh_script_progression --message="Configure hub..." --weight=1
|
ynh_script_progression --message="Configure hub..." --weight=1
|
||||||
|
|
||||||
|
if [ $used_forge = "GitHub" ] ; then
|
||||||
|
forge_website="github.com"
|
||||||
|
else
|
||||||
|
forge_website="gitlab.com"
|
||||||
|
fi
|
||||||
|
|
||||||
mkdir "$final_path/.config/"
|
mkdir "$final_path/.config/"
|
||||||
ynh_add_config --template="../conf/hub_config" --destination="$final_path/.config/hub"
|
ynh_add_config --template="../conf/hub_config" --destination="$final_path/.config/hub"
|
||||||
|
|
||||||
|
|
|
@ -141,6 +141,12 @@ ynh_secure_remove --file="$tempdir"
|
||||||
#=================================================
|
#=================================================
|
||||||
ynh_script_progression --message="Configure hub..." --weight=2
|
ynh_script_progression --message="Configure hub..." --weight=2
|
||||||
|
|
||||||
|
if [ $used_forge = "GitHub" ] ; then
|
||||||
|
forge_website="github.com"
|
||||||
|
else
|
||||||
|
forge_website="gitlab.com"
|
||||||
|
fi
|
||||||
|
|
||||||
mkdir -p "$final_path/.config/"
|
mkdir -p "$final_path/.config/"
|
||||||
ynh_add_config --template="../conf/hub_config" --destination="$final_path/.config/hub"
|
ynh_add_config --template="../conf/hub_config" --destination="$final_path/.config/hub"
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue