Proper way to set up things in user directory #22
Replies: 1 comment
-
We've floated the idea of creating a module for adding files to the home directory and running scripts on boot with systemd, but nothing material exists yet. You have the option of just writing to Or you could create a systemd unit that runs on boot and copies the files from say |
Beta Was this translation helpful? Give feedback.
-
I wonder, what is the right way to set up things such as:
/home/{my-user}
I imagine that I should be able to somehow specify the list of things to do (maybe a listing of files, or a git repo to clone to some location, or a script to execute) in my OS-image repository. On every update of the image, that list of things to do should get executed so that I would have my environment up to date not only on the first boot of a fresh intallation, but also after every update being installed (so, everyday).
I see that there's a files module, but it specifically says that it's executed at build time of the image, so I suppose I should not use that one.
What is the proper way to do that? I'd like my fresh install of my OS to give me all the things I need OOTB, and to keep things up to date on every update. I want to minimize the necessary setup and have my OS just ready to use from the get go. Imagine I have 5 machines, and I just want all of them to be ready to use, all the time.
Beta Was this translation helpful? Give feedback.
All reactions