Skip to content

Commit

Permalink
🎨 Format Python code with Black, and Bash code with Shfmt
Browse files Browse the repository at this point in the history
  • Loading branch information
alexAubin authored and github-actions[bot] committed Feb 23, 2025
1 parent 6455bd5 commit d32e3ae
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
3 changes: 1 addition & 2 deletions hooks/conf_regen/06-slapd
Original file line number Diff line number Diff line change
Expand Up @@ -186,8 +186,7 @@ objectClass: top"
systemctl force-reload slapd
}
if [[ "$1" == _regenerate_slapd_conf ]]
then
if [[ "$1" == _regenerate_slapd_conf ]]; then
_regenerate_slapd_conf
else
do_$1_regen ${@:2}
Expand Down
4 changes: 3 additions & 1 deletion src/migrations/0033_rework_permission_infos.py
Original file line number Diff line number Diff line change
Expand Up @@ -157,7 +157,9 @@ def delete_legacy_permissions(self):
# to be able to empty them ...
# (and yeah why is this all so fucking complex why can't we just drop the column like a real DB or something...)
os.system("sed -i 's@ OBSOLETE$@@g' /etc/ldap/schema/permission.ldif")
os.system("/usr/share/yunohost/hooks/conf_regen/06-slapd _regenerate_slapd_conf")
os.system(
"/usr/share/yunohost/hooks/conf_regen/06-slapd _regenerate_slapd_conf"
)
os.system("systemctl restart slapd")
for infos in permissions_infos:
ldap.update(
Expand Down

0 comments on commit d32e3ae

Please sign in to comment.