Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
wattsworth
/
puppet
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
799874cb
authored
Jun 02, 2019
by
John Doe
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
added locale setting
parent
e1197b2d
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
2 deletions
modules/common/files/first_boot.sh
modules/common/files/first_boot.sh
100644 → 100755
View file @
799874cb
...
...
@@ -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
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment