mirror of
https://github.com/brain-hackers/buildbrain
synced 2024-11-14 22:38:01 +09:00
Fix unset env and wrong locale
This commit is contained in:
parent
b5c7a41797
commit
5a62bc1858
@ -1,7 +1,13 @@
|
||||
#!/bin/bash
|
||||
set -uex -o pipefail
|
||||
|
||||
TIMEZONE="Asia/Tokyo"
|
||||
if [ ! -v TIMEZONE ]; then
|
||||
TIMEZONE=Asia/Tokyo
|
||||
fi
|
||||
|
||||
if [ ! -v CI ]; then
|
||||
CI=false
|
||||
fi
|
||||
|
||||
/debootstrap/debootstrap --second-stage
|
||||
|
||||
@ -32,7 +38,7 @@ apt install -y locales
|
||||
|
||||
echo "$TIMEZONE" > /etc/timezone && \
|
||||
dpkg-reconfigure -f noninteractive tzdata && \
|
||||
sed -i -e 's/# en_US.UTF-8 UTF-8/en_us.UTF-8 UTF-8/' /etc/locale.gen && \
|
||||
sed -i -e 's/# en_US.UTF-8 UTF-8/en_US.UTF-8 UTF-8/' /etc/locale.gen && \
|
||||
echo 'LANG="en_US.UTF-8"' > /etc/default/locale && \
|
||||
dpkg-reconfigure -f noninteractive locales && \
|
||||
update-locale LANG=en_US.UTF-8
|
||||
|
Loading…
Reference in New Issue
Block a user