Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

Already on GitHub? Sign in to your account

Load system-wide defaults from /etc/skel if user's profile not found #47

Merged
merged 1 commit into from May 8, 2012

Conversation

Projects
None yet
2 participants
Member

Happy-Neko commented May 8, 2012

Better configs management for Linux systems.
If user's PMS.conf not found load defaults from /etc/skel/.config/PMS/PMS.conf and save them to home .config directory.

Owner

chocolateboy commented May 8, 2012

Is /etc/skel still used? On a clean Ubuntu 12.04, only bash is using it. Most packages (including yours currently) use /usr/share/doc:

find /usr/share/doc -iregex '.*\(sample\|example\|conf\).*'

Member

Happy-Neko commented May 8, 2012

Yes, it used. If you create new user all files from /etc/skel will be copied to his home dir.

My package already keep example configs in:

/usr/share/doc/ps3mediaserver/examples/PMS.conf
/usr/share/doc/ps3mediaserver/examples/WEB.conf
/usr/share/doc/ps3mediaserver/examples/logback.headless.xml
/usr/share/doc/ps3mediaserver/examples/logback.xml

but I think about them as user documentation / samples, not something that actual program should use. Anyway this path is configurable in project.properties as project.skelprofile.dir.

chocolateboy added a commit that referenced this pull request May 8, 2012

Merge pull request #47 from Happy-Neko/skel-configs-for-linux
Load system-wide defaults from /etc/skel if user's profile not found

@chocolateboy chocolateboy merged commit f4e082e into ps3mediaserver:master May 8, 2012

leonard84 referenced this pull request in leonard84/pms-mlx Jun 26, 2012

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment