1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/gitlab_ynh.git synced 2024-09-03 18:36:35 +02:00

update_attributes is now update

This commit is contained in:
Kay0u 2021-09-15 16:34:50 +02:00
parent d61999e293
commit fe6e7bc364
No known key found for this signature in database
GPG key ID: AAFEEB16CFA2AE2D

View file

@ -27,7 +27,7 @@ final_path=$(ynh_app_setting_get --app=$app --key=final_path)
set__use_web_account() { set__use_web_account() {
if [ -n "${use_web_account}" ] if [ -n "${use_web_account}" ]
then then
echo "ApplicationSetting.last.update_attributes(password_authentication_enabled_for_web: $use_web_account, signup_enabled: $use_web_account)" | gitlab-rails console echo "ApplicationSetting.last.update(password_authentication_enabled_for_web: $use_web_account, signup_enabled: $use_web_account)" | gitlab-rails console
# Update the config of the app # Update the config of the app
ynh_app_setting_set --app=$app --key=use_web_account --value=$use_web_account ynh_app_setting_set --app=$app --key=use_web_account --value=$use_web_account