Use only the basename

This commit is contained in:
Spitap
2025-11-01 17:27:12 +01:00
parent 9c0052c274
commit d6c70fba1d

View File

@@ -141,7 +141,8 @@ class Rspamd(base.Installer):
if os.path.isfile(os.path.join(custom_config_dir, f)) if os.path.isfile(os.path.join(custom_config_dir, f))
] ]
for file in local_files: for file in local_files:
utils.copy_file(file, os.path.join(path, file)) basename = os.path.basename(file)
utils.copy_file(file, os.path.join(path, basename))
if len(local_files) != 0: if len(local_files) != 0:
utils.success("Rspamd custom configuration saved!") utils.success("Rspamd custom configuration saved!")