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
14
Merge Requests
14
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
nexedi
slapos.package
Commits
e5e51ed7
Commit
e5e51ed7
authored
Jun 16, 2023
by
Joanne Hugé
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
playbook/util: make scripts work from any path
parent
87dad3af
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
5 additions
and
1 deletion
+5
-1
playbook/util/diff-playbook
playbook/util/diff-playbook
+1
-1
playbook/util/update-upgrader-timestamp
playbook/util/update-upgrader-timestamp
+1
-0
playbook/util/upload-to-cache
playbook/util/upload-to-cache
+3
-0
No files found.
playbook/util/diff-playbook
View file @
e5e51ed7
...
@@ -13,7 +13,7 @@ function cleanup {
...
@@ -13,7 +13,7 @@ function cleanup {
}
}
trap cleanup EXIT
trap cleanup EXIT
HERE=`
pwd`
HERE=`
dirname $(realpath $0)`/..
DFILE=`mktemp -d`
DFILE=`mktemp -d`
TFILE="archive.tar.gz"
TFILE="archive.tar.gz"
cd $DFILE
cd $DFILE
...
...
playbook/util/update-upgrader-timestamp
View file @
e5e51ed7
cd $(dirname $(realpath $0))/..
sed -i "s/upgrade_after:.*/upgrade_after: `date +%s`/g" settings/upgrader.yml
sed -i "s/upgrade_after:.*/upgrade_after: `date +%s`/g" settings/upgrader.yml
playbook/util/upload-to-cache
View file @
e5e51ed7
playbook_dir="$(dirname $(realpath $0))/.."
conf=${1:-/etc/opt/slapcache.cfg}
conf=${1:-/etc/opt/slapcache.cfg}
conf=$(realpath $conf)
conf=$(realpath $conf)
cd $playbook_dir
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