debamp/src/amp-prefered-config/DEBIAN/postinst

16 lines
644 B
Bash
Executable File

#!/bin/bash
grep '$include /usr/lib/amp-prefered-config/inputrc' /etc/inputrc > /dev/null || echo '$include /usr/lib/amp-prefered-config/inputrc' >> /etc/inputrc
#sed -i 's/#PasswordAuthentication yes/PasswordAuthentication no/g' /etc/ssh/sshd_config
ln -fs /usr/share/zoneinfo/Europe/Paris /etc/localtime
dpkg-reconfigure -f noninteractive tzdata
sed -i 's/# fr_FR.UTF-8 UTF-8/fr_FR.UTF-8 UTF-8/g' /etc/locale.gen
echo "LANG=fr_FR.UTF-8" > /etc/default/locale
/usr/sbin/locale-gen
[ "$(systemd-detect-virt )" == "lxc" ] && grep '^MaxRetentionSec=' /etc/systemd/journald.conf || echo 'MaxRetentionSec=2week' >> /etc/systemd/journald.conf