Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
S
slapos.package
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
Arnaud Véron
slapos.package
Commits
0093020b
Commit
0093020b
authored
Jun 16, 2023
by
Joanne Hugé
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
playbook/upgrader: set locale so that sort behaves the same between cron and command line
parent
91c9d4a7
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
2 deletions
+2
-2
playbook/roles/upgrader/tasks/main.yml
playbook/roles/upgrader/tasks/main.yml
+1
-1
playbook/util/upload-to-cache
playbook/util/upload-to-cache
+1
-1
No files found.
playbook/roles/upgrader/tasks/main.yml
View file @
0093020b
...
@@ -25,7 +25,7 @@
...
@@ -25,7 +25,7 @@
chdir
:
/opt/upgrader/tmp
chdir
:
/opt/upgrader/tmp
-
name
:
Check uncompressed archive sha256sum
-
name
:
Check uncompressed archive sha256sum
shell
:
cd /opt/upgrader/tmp && find . -type f ! -name 'sha256sum' -print0 | sort -z | xargs -0 sha256sum | sha256sum --check sha256sum
shell
:
cd /opt/upgrader/tmp && find . -type f ! -name 'sha256sum' -print0 |
LC_ALL=C
sort -z | xargs -0 sha256sum | sha256sum --check sha256sum
register
:
playbook_sha256sum
register
:
playbook_sha256sum
-
shell
:
cp -R /opt/upgrader/tmp /opt/upgrader/playbook
-
shell
:
cp -R /opt/upgrader/tmp /opt/upgrader/playbook
...
...
playbook/util/upload-to-cache
View file @
0093020b
...
@@ -3,5 +3,5 @@ conf=${1:-/etc/opt/slapcache.cfg}
...
@@ -3,5 +3,5 @@ conf=${1:-/etc/opt/slapcache.cfg}
conf=$(realpath $conf)
conf=$(realpath $conf)
cd $playbook_dir
cd $playbook_dir
find . -type f ! -name 'sha256sum' -print0 | sort -z | xargs -0 sha256sum | sha256sum > sha256sum
find . -type f ! -name 'sha256sum' -print0 |
LC_ALL=C
sort -z | xargs -0 sha256sum | sha256sum > sha256sum
rm -f /tmp/archive.tar.gz && tar -czvf /tmp/archive.tar.gz . && slapcache-upload --file=/tmp/archive.tar.gz --slapos-configuration=$conf
rm -f /tmp/archive.tar.gz && tar -czvf /tmp/archive.tar.gz . && slapcache-upload --file=/tmp/archive.tar.gz --slapos-configuration=$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