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:
parent
a3aea50161
commit
631ec7dd3c
4 changed files with 7 additions and 6 deletions
|
@ -74,7 +74,7 @@
|
||||||
"en": "Your forge's username",
|
"en": "Your forge's username",
|
||||||
"fr": "Nom d'utilisateur sur votre forge"
|
"fr": "Nom d'utilisateur sur votre forge"
|
||||||
},
|
},
|
||||||
"example": "Your account"
|
"example": "Your username"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"name": "forge_token",
|
"name": "forge_token",
|
||||||
|
|
|
@ -33,6 +33,7 @@ fi
|
||||||
|
|
||||||
set_forge_variables() {
|
set_forge_variables() {
|
||||||
if [ $used_forge -eq "GitHub" ]
|
if [ $used_forge -eq "GitHub" ]
|
||||||
|
then
|
||||||
github_username="\"$forge_username\""
|
github_username="\"$forge_username\""
|
||||||
github_token="\"$forge_token\""
|
github_token="\"$forge_token\""
|
||||||
gitlab_username="None"
|
gitlab_username="None"
|
||||||
|
|
|
@ -29,7 +29,7 @@ is_public=$YNH_APP_ARG_IS_PUBLIC
|
||||||
admin=$YNH_APP_ARG_ADMIN
|
admin=$YNH_APP_ARG_ADMIN
|
||||||
password=$YNH_APP_ARG_PASSWORD
|
password=$YNH_APP_ARG_PASSWORD
|
||||||
used_forge=$YNH_APP_ARG_USED_FORGE
|
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
|
forge_token=$YNH_APP_ARG_FORGE_TOKEN
|
||||||
|
|
||||||
app=$YNH_APP_INSTANCE_NAME
|
app=$YNH_APP_INSTANCE_NAME
|
||||||
|
|
|
@ -24,7 +24,7 @@ db_name=$(ynh_app_setting_get --app=$app --key=db_name)
|
||||||
db_user=$db_name
|
db_user=$db_name
|
||||||
db_pwd=$(ynh_app_setting_get --app=$app --key=psqlpwd)
|
db_pwd=$(ynh_app_setting_get --app=$app --key=psqlpwd)
|
||||||
used_forge=$(ynh_app_setting_get --app=$app --key=used_forge)
|
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)
|
forge_token=$(ynh_app_setting_get --app=$app --key=forge_token)
|
||||||
redis_db=$(ynh_app_setting_get --app=$app --key=redis_db)
|
redis_db=$(ynh_app_setting_get --app=$app --key=redis_db)
|
||||||
|
|
||||||
|
@ -88,13 +88,13 @@ then
|
||||||
ynh_secure_remove --file="/var/log/$app-celery"
|
ynh_secure_remove --file="/var/log/$app-celery"
|
||||||
fi
|
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
|
if [ -z "$used_forge" ]; then
|
||||||
used_forge="GitHub"
|
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)
|
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=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
|
ynh_app_setting_set --app=$app --key=forge_token --value=$forge_token
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue