Replies: 1 comment
-
|
So I understand that the goal is to be able to write f=$(GetPackageOriginalFile some-package /var/lib/foo.conf /etc/foo.conf)instead of f=$(CreateFile /etc/foo.conf)
mv "$(GetPackageOriginalFile some-package /var/lib/foo.conf)" "$f"Seems fine to me, feel free to submit a PR to add this. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
It would be useful for
GetPackageOriginalFileto have optional third argument - destination path - used instead of the original path from the package.Why would this be useful?
Fair few packages (the example that prompted me to open this suggestion is pipewire) have default configuration files in
usrfolder which you can modify by copying it to theetcfolder and edit it there. For making small, inlined change to the original file, it would be useful to be able to put it into new location directly, instead of extracting it temporarily and then usingCreateFile.Beta Was this translation helpful? Give feedback.
All reactions