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
Léo-Paul Géneau
slapos.core
Commits
7b7d18a9
Commit
7b7d18a9
authored
Sep 13, 2022
by
Jérome Perrin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
slapos_web_deploy: use mktemp to create temp directory
parent
16752b7f
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 @
7b7d18a9
...
@@ -19,10 +19,9 @@ function download_playbook {
...
@@ -19,10 +19,9 @@ function download_playbook {
if [ ! -f /etc/opt/slapcache.cfg ]; then
if [ ! -f /etc/opt/slapcache.cfg ]; then
slapcache-conf
slapcache-conf
fi
fi
DFILE=
"/tmp/tmpplaybook$(basename $0).$$/"
DFILE=
$(mktemp -d -t "$(basename "$0")"-XXXXXXXXXXXX)
TFILE="archive.tar.gz"
TFILE="archive.tar.gz"
mkdir -p $DFILE
cd "$DFILE" || exit 1
cd $DFILE
slapcache-download --destination=$TFILE
slapcache-download --destination=$TFILE
tar -xzvf $TFILE
tar -xzvf $TFILE
rm $TFILE
rm $TFILE
...
...
master/bt5/slapos_web_deploy/PathTemplateItem/web_page_module/deploy_testing_channel.txt
View file @
7b7d18a9
...
@@ -4,10 +4,9 @@ if [ ! -f /etc/opt/slapcache.cfg ]; then
...
@@ -4,10 +4,9 @@ if [ ! -f /etc/opt/slapcache.cfg ]; then
fi
fi
sed -i "s/key = slapos-global-key/key = slapos-global-official-vifib-testing-key/g" /etc/opt/slapcache.cfg
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"
TFILE="archive.tar.gz"
mkdir -p $DFILE
cd "$DFILE" || exit 1
cd $DFILE
slapcache-download --destination=$TFILE
slapcache-download --destination=$TFILE
tar -xzvf $TFILE
tar -xzvf $TFILE
rm $TFILE
rm $TFILE
master/bt5/slapos_web_deploy/PathTemplateItem/web_page_module/deploy_unstable_channel.txt
View file @
7b7d18a9
...
@@ -4,10 +4,9 @@ if [ ! -f /etc/opt/slapcache.cfg ]; then
...
@@ -4,10 +4,9 @@ if [ ! -f /etc/opt/slapcache.cfg ]; then
fi
fi
sed -i "s/key = slapos-global-key/key = slapos-global-unstable-key/g" /etc/opt/slapcache.cfg
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"
TFILE="archive.tar.gz"
mkdir -p $DFILE
cd "$DFILE" || exit 1
cd $DFILE
slapcache-download --destination=$TFILE
slapcache-download --destination=$TFILE
tar -xzvf $TFILE
tar -xzvf $TFILE
rm $TFILE
rm $TFILE
master/bt5/slapos_web_deploy/PathTemplateItem/web_page_module/deploy_vifib_channel.txt
View file @
7b7d18a9
...
@@ -4,10 +4,9 @@ if [ ! -f /etc/opt/slapcache.cfg ]; then
...
@@ -4,10 +4,9 @@ if [ ! -f /etc/opt/slapcache.cfg ]; then
fi
fi
sed -i "s/key = slapos-global-key/key = slapos-global-official-vifib-key/g" /etc/opt/slapcache.cfg
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"
TFILE="archive.tar.gz"
mkdir -p $DFILE
cd "$DFILE" || exit 1
cd $DFILE
slapcache-download --destination=$TFILE
slapcache-download --destination=$TFILE
tar -xzvf $TFILE
tar -xzvf $TFILE
rm $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