Code cleanup #33
7
Vagrantfile
vendored
7
Vagrantfile
vendored
|
@ -28,7 +28,12 @@ DEBIAN_FRONTEND=noninteractive apt-get -yq install openssh-server btrfs-tools rs
|
|||
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
|
||||
exit 0
|
||||
SCRIPT
|
||||
|
|
Loading…
Reference in a new issue