2021-04-08 20:32:56 +02:00
|
|
|
#!/bin/bash
|
|
|
|
|
2021-04-08 21:14:14 +02:00
|
|
|
# Authors:
|
|
|
|
# (C) 2021 Idea an concept by Christian Zengel <christian@sysops.de>
|
2021-04-16 17:00:31 +02:00
|
|
|
# (C) 2021 Script design and prototype by Markus Helmke <m.helmke@nettwarker.de>
|
2021-04-09 18:10:07 +02:00
|
|
|
# (C) 2021 Script rework and documentation by Thorsten Spille <thorsten@spille-edv.de>
|
2021-04-08 21:14:14 +02:00
|
|
|
|
2021-04-12 23:48:49 +02:00
|
|
|
source /root/zamba.conf
|
2021-04-24 00:00:27 +02:00
|
|
|
source /root/proxmox.conf
|
2021-04-12 23:48:49 +02:00
|
|
|
|
2021-04-24 00:00:27 +02:00
|
|
|
sed -i "s/^#.$HOST_LOCALE/$HOST_LOCALE/" /etc/locale.gen
|
|
|
|
locale-gen $HOST_LOCALE
|
|
|
|
|
|
|
|
sed -i "s/^#.$LXC_LOCALE/$LXC_LOCALE/" /etc/locale.gen
|
2021-04-20 21:48:21 +02:00
|
|
|
locale-gen $LXC_LOCALE
|
2021-04-24 00:00:27 +02:00
|
|
|
echo LANG=$LXC_LOCALE > /etc/default/locale
|
|
|
|
echo LANGUAGE=$LXC_LOCALE >> /etc/default/locale
|
|
|
|
export LANG=$LXC_LOCALE
|
|
|
|
export LANGUAGE=$LXC_LOCALE
|
|
|
|
export LC_CTYPE=C
|
2021-04-20 21:48:21 +02:00
|
|
|
|
2021-04-14 00:58:25 +02:00
|
|
|
apt update
|
|
|
|
DEBIAN_FRONTEND=noninteractive DEBIAN_PRIORITY=critical apt -y -qq dist-upgrade
|
2021-04-15 19:40:02 +02:00
|
|
|
DEBIAN_FRONTEND=noninteractive DEBIAN_PRIORITY=critical apt install -y -o DPkg::options::="--force-confdef" -o DPkg::options::="--force-confold" $LXC_TOOLSET
|
2021-04-16 17:00:31 +02:00
|
|
|
sed -i "s|\"syntax on|syntax on|g" /etc/vim/vimrc
|