mirror of
https://github.com/YunoHost-Apps/django-for-runners_ynh.git
synced 2024-09-03 18:26:16 +02:00
remove unused conf file
This commit is contained in:
parent
90cba0e7bb
commit
bc2b33b35d
3 changed files with 0 additions and 19 deletions
|
@ -1,17 +0,0 @@
|
||||||
from django_auth_ldap.backend import LDAPBackend
|
|
||||||
from inventory.permissions import get_or_create_normal_user_group
|
|
||||||
|
|
||||||
|
|
||||||
class Django-For-RunnersYunohostLdapBackend(LDAPBackend):
|
|
||||||
def get_or_build_user(self, username, ldap_user):
|
|
||||||
user, built = super().get_or_build_user(username, ldap_user)
|
|
||||||
|
|
||||||
if built:
|
|
||||||
user.is_staff = True
|
|
||||||
user.is_superuser = False
|
|
||||||
user.save()
|
|
||||||
|
|
||||||
django-for-runners_user_group = get_or_create_normal_user_group()[0]
|
|
||||||
user.groups.set([django-for-runners_user_group])
|
|
||||||
|
|
||||||
return user, built
|
|
|
@ -157,7 +157,6 @@ ynh_app_setting_set --app="$app" --key=redis_db --value="$redis_db"
|
||||||
|
|
||||||
touch "$final_path/local_settings.py"
|
touch "$final_path/local_settings.py"
|
||||||
|
|
||||||
cp "../conf/ynh_sso_ldap_backend.py" "$final_path/ynh_sso_ldap_backend.py"
|
|
||||||
cp "../conf/ynh_urls.py" "$final_path/ynh_urls.py"
|
cp "../conf/ynh_urls.py" "$final_path/ynh_urls.py"
|
||||||
|
|
||||||
#=================================================
|
#=================================================
|
||||||
|
|
|
@ -147,7 +147,6 @@ ynh_store_file_checksum --file="$settings"
|
||||||
|
|
||||||
touch "$final_path/local_settings.py"
|
touch "$final_path/local_settings.py"
|
||||||
|
|
||||||
cp "../conf/ynh_sso_ldap_backend.py" "$final_path/ynh_sso_ldap_backend.py"
|
|
||||||
cp "../conf/ynh_urls.py" "$final_path/ynh_urls.py"
|
cp "../conf/ynh_urls.py" "$final_path/ynh_urls.py"
|
||||||
|
|
||||||
#=================================================
|
#=================================================
|
||||||
|
|
Loading…
Reference in a new issue