1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/weblate_ynh.git synced 2024-10-01 13:35:04 +02:00

fix variable names

This commit is contained in:
ericgaspar 2022-08-11 20:00:25 +02:00
parent a3aea50161
commit 631ec7dd3c
4 changed files with 7 additions and 6 deletions

View file

@ -74,7 +74,7 @@
"en": "Your forge's username",
"fr": "Nom d'utilisateur sur votre forge"
},
"example": "Your account"
"example": "Your username"
},
{
"name": "forge_token",

View file

@ -33,6 +33,7 @@ fi
set_forge_variables() {
if [ $used_forge -eq "GitHub" ]
then
github_username="\"$forge_username\""
github_token="\"$forge_token\""
gitlab_username="None"

View file

@ -29,7 +29,7 @@ is_public=$YNH_APP_ARG_IS_PUBLIC
admin=$YNH_APP_ARG_ADMIN
password=$YNH_APP_ARG_PASSWORD
used_forge=$YNH_APP_ARG_USED_FORGE
forge_account=$YNH_APP_ARG_FORGE_USERNAME
forge_username=$YNH_APP_ARG_FORGE_USERNAME
forge_token=$YNH_APP_ARG_FORGE_TOKEN
app=$YNH_APP_INSTANCE_NAME

View file

@ -24,7 +24,7 @@ db_name=$(ynh_app_setting_get --app=$app --key=db_name)
db_user=$db_name
db_pwd=$(ynh_app_setting_get --app=$app --key=psqlpwd)
used_forge=$(ynh_app_setting_get --app=$app --key=used_forge)
forge_account=$(ynh_app_setting_get --app=$app --key=forge_account)
forge_username=$(ynh_app_setting_get --app=$app --key=forge_username)
forge_token=$(ynh_app_setting_get --app=$app --key=forge_token)
redis_db=$(ynh_app_setting_get --app=$app --key=redis_db)
@ -88,13 +88,13 @@ then
ynh_secure_remove --file="/var/log/$app-celery"
fi
# If used_forge, forge_account, forge_token don't exist, create them
# If used_forge, forge_username, forge_token don't exist, create them
if [ -z "$used_forge" ]; then
used_forge="GitHub"
forge_account=$(ynh_app_setting_get --app=$app --key=github_account)
forge_username=$(ynh_app_setting_get --app=$app --key=github_account)
forge_token=$(ynh_app_setting_get --app=$app --key=github_token)
ynh_app_setting_set --app=$app --key=used_forge --value=$used_forge
ynh_app_setting_set --app=$app --key=forge_account --value=$forge_account
ynh_app_setting_set --app=$app --key=forge_username --value=$forge_username
ynh_app_setting_set --app=$app --key=forge_token --value=$forge_token
fi