Check locale before init

This commit is contained in:
Hactarus 2018-05-31 12:13:07 +00:00
parent 205c7ca425
commit 5a6669a5fc
3 changed files with 9 additions and 2 deletions

View file

@ -9,3 +9,6 @@
name = "Hactarus" name = "Hactarus"
email = "hactarus.git@cresi.be" email = "hactarus.git@cresi.be"
{{end}} {{end}}
[alias]
pushdev = !git push --set-upstream origin "`git branch --no-color 2>/dev/null | grep '*' | sed -e 's/\\* //'`:dev/{{ .Env.USER }}/`git branch --no-color 2>/dev/null | grep '*' | sed -e 's/\\* //'`"

View file

@ -23,5 +23,4 @@ Host ansible
Host node* Host node*
User root User root
Port 16843 Port 16843
IdentityFile ~/.ssh/node IdentityFile ~/.ssh/ed25519
{{ .os.Hostname }}

5
init
View file

@ -1,3 +1,8 @@
#!/bin/bash #!/bin/bash
locale -a | grep -i "utf8"
if [[ ! $? -eq 0 ]]; then
echo -e "\033[31;1mPlease install utf8 locale\033[0m"
exit 1
fi
_RDIR=$(cd `dirname $0` && pwd) _RDIR=$(cd `dirname $0` && pwd)
${_RDIR}/bin/homemaker.amd64 -variant $@ ${_RDIR}/common.toml ${_RDIR} ${_RDIR}/bin/homemaker.amd64 -variant $@ ${_RDIR}/common.toml ${_RDIR}