mirror of
https://github.com/YunoHost/yunohost.git
synced 2024-09-03 20:06:10 +02:00
[fix] Copy data without stat when processing regen conf file
This commit is contained in:
parent
a3b6a73709
commit
e0ea752f6b
1 changed files with 1 additions and 1 deletions
|
@ -665,7 +665,7 @@ def _process_regen_conf(system_conf, new_conf=None, save=True):
|
|||
system_dir = os.path.dirname(system_conf)
|
||||
if not os.path.isdir(system_dir):
|
||||
filesystem.mkdir(system_dir, 0755, True)
|
||||
shutil.copy2(new_conf, system_conf)
|
||||
shutil.copyfile(new_conf, system_conf)
|
||||
logger.info(m18n.n('service_conf_file_updated',
|
||||
conf=system_conf))
|
||||
except:
|
||||
|
|
Loading…
Add table
Reference in a new issue