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
Labels
Merge Requests
18
Merge Requests
18
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Jobs
Commits
Open sidebar
nexedi
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
Pipeline
#23490
failed with stage
in 0 seconds
Changes
4
Pipelines
1
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