mirror of
https://github.com/YunoHost-Apps/forgejo_ynh.git
synced 2024-09-03 18:36:26 +02:00
fix: access token scope
This commit is contained in:
parent
cad1d7b8ae
commit
c4e105f786
1 changed files with 1 additions and 1 deletions
|
@ -25,7 +25,7 @@ function create_forgejo_api_user() {
|
||||||
ynh_app_setting_set --app=$app --key=forgejo_api_pwd --value=$forgejo_api_pwd
|
ynh_app_setting_set --app=$app --key=forgejo_api_pwd --value=$forgejo_api_pwd
|
||||||
pushd "$install_dir"
|
pushd "$install_dir"
|
||||||
ynh_exec_as $app ./forgejo admin user create --username $forgejo_api_user --password $forgejo_api_pwd --email admin@${domain} --admin --must-change-password=false
|
ynh_exec_as $app ./forgejo admin user create --username $forgejo_api_user --password $forgejo_api_pwd --email admin@${domain} --admin --must-change-password=false
|
||||||
forgejo_api_token=$(ynh_exec_as $app ./forgejo admin user generate-access-token --username $forgejo_api_user --token-name "admin" --scopes "sudo" --raw | tail -1)
|
forgejo_api_token=$(ynh_exec_as $app ./forgejo admin user generate-access-token --username $forgejo_api_user --token-name "admin" --scopes "write:admin" --raw | tail -1)
|
||||||
ynh_app_setting_set --app=$app --key=forgejo_api_token --value=$forgejo_api_token
|
ynh_app_setting_set --app=$app --key=forgejo_api_token --value=$forgejo_api_token
|
||||||
popd
|
popd
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue