Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
S
slapos.core
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
Thomas Gambier
slapos.core
Commits
5a6cc2c0
Commit
5a6cc2c0
authored
Sep 13, 2022
by
Rafael Monnerat
Browse files
Options
Browse Files
Download
Plain Diff
slapos_web_deploy: use mktemp to create temp directory
See merge request
!418
parents
2a273d72
7b7d18a9
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
8 additions
and
12 deletions
+8
-12
master/bt5/slapos_web_deploy/PathTemplateItem/web_page_module/deploy_base_setup.txt
...oy/PathTemplateItem/web_page_module/deploy_base_setup.txt
+2
-3
master/bt5/slapos_web_deploy/PathTemplateItem/web_page_module/deploy_testing_channel.txt
...thTemplateItem/web_page_module/deploy_testing_channel.txt
+2
-3
master/bt5/slapos_web_deploy/PathTemplateItem/web_page_module/deploy_unstable_channel.txt
...hTemplateItem/web_page_module/deploy_unstable_channel.txt
+2
-3
master/bt5/slapos_web_deploy/PathTemplateItem/web_page_module/deploy_vifib_channel.txt
...PathTemplateItem/web_page_module/deploy_vifib_channel.txt
+2
-3
No files found.
master/bt5/slapos_web_deploy/PathTemplateItem/web_page_module/deploy_base_setup.txt
View file @
5a6cc2c0
...
...
@@ -19,10 +19,9 @@ function download_playbook {
if [ ! -f /etc/opt/slapcache.cfg ]; then
slapcache-conf
fi
DFILE=
"/tmp/tmpplaybook$(basename $0).$$/"
DFILE=
$(mktemp -d -t "$(basename "$0")"-XXXXXXXXXXXX)
TFILE="archive.tar.gz"
mkdir -p $DFILE
cd $DFILE
cd "$DFILE" || exit 1
slapcache-download --destination=$TFILE
tar -xzvf $TFILE
rm $TFILE
...
...
master/bt5/slapos_web_deploy/PathTemplateItem/web_page_module/deploy_testing_channel.txt
View file @
5a6cc2c0
...
...
@@ -4,10 +4,9 @@ if [ ! -f /etc/opt/slapcache.cfg ]; then
fi
sed -i "s/key = slapos-global-key/key = slapos-global-official-vifib-testing-key/g" /etc/opt/slapcache.cfg
DFILE=
"/tmp/tmpplaybook_unstable$(basename $0).$$/"
DFILE=
$(mktemp -d -t tmpplaybook_unstable"$(basename "$0")".XXXXXXXXXXXX)
TFILE="archive.tar.gz"
mkdir -p $DFILE
cd $DFILE
cd "$DFILE" || exit 1
slapcache-download --destination=$TFILE
tar -xzvf $TFILE
rm $TFILE
master/bt5/slapos_web_deploy/PathTemplateItem/web_page_module/deploy_unstable_channel.txt
View file @
5a6cc2c0
...
...
@@ -4,10 +4,9 @@ if [ ! -f /etc/opt/slapcache.cfg ]; then
fi
sed -i "s/key = slapos-global-key/key = slapos-global-unstable-key/g" /etc/opt/slapcache.cfg
DFILE=
"/tmp/tmpplaybook_unstable$(basename $0).$$/"
DFILE=
$(mktemp -d -t tmpplaybook_unstable"$(basename "$0")".XXXXXXXXXXXX)
TFILE="archive.tar.gz"
mkdir -p $DFILE
cd $DFILE
cd "$DFILE" || exit 1
slapcache-download --destination=$TFILE
tar -xzvf $TFILE
rm $TFILE
master/bt5/slapos_web_deploy/PathTemplateItem/web_page_module/deploy_vifib_channel.txt
View file @
5a6cc2c0
...
...
@@ -4,10 +4,9 @@ if [ ! -f /etc/opt/slapcache.cfg ]; then
fi
sed -i "s/key = slapos-global-key/key = slapos-global-official-vifib-key/g" /etc/opt/slapcache.cfg
DFILE=
"/tmp/tmpplaybook_unstable$(basename $0).$$/"
DFILE=
$(mktemp -d -t tmpplaybook_unstable"$(basename "$0")".XXXXXXXXXXXX)
TFILE="archive.tar.gz"
mkdir -p $DFILE
cd $DFILE
cd "$DFILE" || exit 1
slapcache-download --destination=$TFILE
tar -xzvf $TFILE
rm $TFILE
\ No newline at end of file
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