deploy: Ensure that any modified config files are fsync()d
It really wouldn't do for one to be missing one's ssh keys for example...
This commit is contained in:
parent
1b16553600
commit
38feca0e4d
|
|
@ -86,6 +86,11 @@ copy_modified_config_file (GFile *orig_etc,
|
||||||
if (!g_file_copy (src, dest, G_FILE_COPY_OVERWRITE | G_FILE_COPY_NOFOLLOW_SYMLINKS | G_FILE_COPY_ALL_METADATA,
|
if (!g_file_copy (src, dest, G_FILE_COPY_OVERWRITE | G_FILE_COPY_NOFOLLOW_SYMLINKS | G_FILE_COPY_ALL_METADATA,
|
||||||
cancellable, NULL, NULL, error))
|
cancellable, NULL, NULL, error))
|
||||||
goto out;
|
goto out;
|
||||||
|
if (g_file_info_get_file_type (src_info) == G_FILE_TYPE_REGULAR)
|
||||||
|
{
|
||||||
|
if (!gs_file_sync_data (dest, cancellable, error))
|
||||||
|
goto out;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
ret = TRUE;
|
ret = TRUE;
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue