[arch-general] systemd native files in etc
Sébastien Leblanc
leblancsebas at gmail.com
Thu Aug 23 19:44:52 EDT 2012
Could default templates be provided in the post_install(){} hook for
the systemd package? Something like
post_install() {
if [ ! -e /etc/timezone ] ; then
cat > /etc/timezone <<EOF
UTC
fi
if [ ! -e /etc/localtime ] ; then
ln -s /usr/share/zoneinfo/UTC /etc/localtime
fi
if [ ! -e /etc/hostname ] ; then
hostname > /etc/hostname
fi
}
That way, on upgrade, they would not be overwritten, but on install
you would at least have working settings.
--
Sébastien Leblanc
More information about the arch-general
mailing list