Check locale before init
This commit is contained in:
parent
205c7ca425
commit
5a6669a5fc
3 changed files with 9 additions and 2 deletions
|
@ -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/\\* //'`"
|
|
@ -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
5
init
|
@ -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}
|
Loading…
Add table
Reference in a new issue