Commit 799874cb by John Doe

added locale setting

parent e1197b2d
Showing with 11 additions and 2 deletions
......@@ -11,16 +11,24 @@ if [[ ! -p $pipe ]]; then
mkfifo $pipe
fi
# set the locale if empty
if [ -z "$LC_ALL" ]; then
export LC_ALL=C.UTF-8
fi
if [ -z "$LANG" ]; then
export LANG=C.UTF-8
fi
(
echo "# Generating Encryption Keys"
RAILS_PWD="$(openssl rand -hex 8)"
JOULE_PWD="$(openssl rand -hex 8)"
service joule stop
rm -f /etc/joule/main.conf
joule admin initialize --dsn joule:$JOULE_PWD@localhost:5432/joule
service joule restart
echo "# Generating Rails secrets"
cd /opt/api
......@@ -69,3 +77,4 @@ sleep 1
) | cat > $pipe
systemctl disable first_boot.service
service joule start
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment