forked from evolix/evobackup
Vagrant: reconfigure locales
This commit is contained in:
parent
db70bd21e9
commit
41866d8236
7
Vagrantfile
vendored
7
Vagrantfile
vendored
|
@ -28,7 +28,12 @@ DEBIAN_FRONTEND=noninteractive apt-get -yq install openssh-server btrfs-tools rs
|
||||||
SCRIPT
|
SCRIPT
|
||||||
|
|
||||||
$pre_part = <<SCRIPT
|
$pre_part = <<SCRIPT
|
||||||
lsof|awk '/backup/ { print $2 }'| xargs --no-run-if-empty kill -9
|
sed -i -e 's/# en_US.UTF-8 UTF-8/en_US.UTF-8 UTF-8/' /etc/locale.gen && \
|
||||||
|
sed -i -e 's/# fr_FR.UTF-8 UTF-8/fr_FR.UTF-8 UTF-8/' /etc/locale.gen && \
|
||||||
|
echo 'LANG="fr_FR.UTF-8"'>/etc/default/locale && \
|
||||||
|
dpkg-reconfigure --frontend=noninteractive locales && \
|
||||||
|
update-locale LANG=fr_FR.UTF-8
|
||||||
|
lsof | awk '/backup/ { print $2 }' | xargs --no-run-if-empty kill -9
|
||||||
grep -q /backup /proc/mounts && umount -R /backup
|
grep -q /backup /proc/mounts && umount -R /backup
|
||||||
exit 0
|
exit 0
|
||||||
SCRIPT
|
SCRIPT
|
||||||
|
|
Loading…
Reference in a new issue