Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
slapos
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Steven Gueguen
slapos
Commits
18242fee
Commit
18242fee
authored
Mar 01, 2024
by
Steven Gueguen
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix token extraction
parent
6343d7b2
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
6 deletions
+5
-6
software/warp10/buildout.hash.cfg
software/warp10/buildout.hash.cfg
+1
-1
software/warp10/install-warp10.sh.in
software/warp10/install-warp10.sh.in
+4
-5
No files found.
software/warp10/buildout.hash.cfg
View file @
18242fee
...
...
@@ -4,4 +4,4 @@ md5sum = 297c5bd36d4e6e3b646801e881f1a4bd
[install-warp10.sh]
filename = install-warp10.sh.in
md5sum =
0cee0cca541c0f7aa2654907258a43d8
md5sum =
15d8ec690b7fda3077e77cf6f2fe0407
software/warp10/install-warp10.sh.in
View file @
18242fee
...
...
@@ -39,16 +39,15 @@ sed -i -e 's|^#warpscript.extension.sensision|warpscript.extension.sensision|g'
## Generate demo tokens
##
tokens
=
$(
"
${
WARP10_HOME
}
"
/bin/warp10.sh tokengen
"
${
WARP10_HOME
}
/tokens/demo-tokengen.mc2"
2>/dev/null
)
READ_TOKEN
=
$(
echo
"
${
tokens
}
"
|
grep
DemoReadToken
-A1
|
tail
-1
|
sed
-e
's/.*" : "//'
-e
's/"//'
)
WRITE_TOKEN
=
$(
echo
"
${
tokens
}
"
|
grep
DemoWriteToken
-A1
|
tail
-1
|
sed
-e
's/.*" : "//'
-e
's/"//'
)
READ_TOKEN
=
$(
echo
"
${
tokens
}
"
|
grep
'"token"'
|
tail
-1
|
sed
-e
's/.*" : "//'
-e
's/".*//'
)
WRITE_TOKEN
=
$(
echo
"
${
tokens
}
"
|
grep
'"token"'
|
head
-1
|
sed
-e
's/.*" : "//'
-e
's/".*//'
)
##
## Generate read/write token for sensision for a period of 100 years. We use 'sensision' as application name.
## Define token as MACROCONFIG key for runner script
##
tokens
=
$(
"
${
WARP10_HOME
}
"
/bin/warp10.sh tokengen
"
${
WARP10_HOME
}
/tokens/sensision-tokengen.mc2"
2>/dev/null
)
SENSISION_READ_TOKEN
=
$(
echo
"
${
tokens
}
"
|
grep
SensisionReadToken
-A1
|
tail
-1
|
sed
-e
's/.*" : "//'
-e
's/"
//'
)
SENSISION_WRITE_TOKEN
=
$(
echo
"
${
tokens
}
"
|
grep
SensisionWriteToken
-A1
|
tail
-1
|
sed
-e
's/.*" : "//'
-e
's/"
//'
)
SENSISION_READ_TOKEN
=
$(
echo
"
${
tokens
}
"
|
grep
'"token"'
|
tail
-1
|
sed
-e
's/.*" : "//'
-e
's/".*
//'
)
SENSISION_WRITE_TOKEN
=
$(
echo
"
${
tokens
}
"
|
grep
'"token"'
|
head
-1
|
sed
-e
's/.*" : "//'
-e
's/".*
//'
)
echo
"sensisionReadToken@/sensision=
${
SENSISION_READ_TOKEN
}
"
>>
"
${
WARP10_CONFIG_DIR
}
"
/99-sensision-secrets.conf
echo
"sensisionWriteToken@/sensision=
${
SENSISION_WRITE_TOKEN
}
"
>>
"
${
WARP10_CONFIG_DIR
}
"
/99-sensision-secrets.conf
...
...
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