Re: systemd native files in etc

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]



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


[Index of Archives]     [Linux Wireless]     [Linux Kernel]     [ATH6KL]     [Linux Bluetooth]     [Linux Netdev]     [Kernel Newbies]     [Share Photos]     [IDE]     [Security]     [Git]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux ATA RAID]     [Samba]     [Device Mapper]
  Powered by Linux