update to db59a1a2dd 2019-03-07
[automated-distro-installer] / fai / config / hooks / instsoft.DEBIAN
1 #! /bin/bash
2
3 # if package locales will be installed, then install it early, before
4 # other packages
5 if [ $FAI_ACTION != "install" -a $FAI_ACTION != "dirinstall" ]; then
6 exit 0
7 fi
8
9 fcopy -Bi /etc/apt/apt.conf.d/force_confdef
10 ainsl -a /etc/ucf.conf "^conf_force_conffold=YES"
11
12 # in case the locales are already included inside the base file (Ubuntu)
13 if [ -f $target/usr/sbin/locale-gen ]; then
14 exit
15 fi
16
17 # if we want to install locales, install them now
18 install_packages -l 2>/dev/null | egrep -q ' locales|locales '
19 if [ $? -eq 0 ]; then
20 if [ X$verbose = X1 ]; then
21 $ROOTCMD apt-get -y install locales
22 else
23 $ROOTCMD apt-get -y install locales > /dev/null
24 fi
25 fi