Skip to content

Commit

Permalink
update uuid
Browse files Browse the repository at this point in the history
  • Loading branch information
tillkruss authored Nov 25, 2024
1 parent 18831a7 commit e61716f
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 3 deletions.
2 changes: 1 addition & 1 deletion build/fpm/src/deb/after-install-multi.sh
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ set -e
uuid=$(cat /proc/sys/kernel/random/uuid)

<% binary_paths.split(' ').each do |binary_path| -%>
sed -i "s/BIN:31415926-5358-9793-2384-626433832795/BIN:${uuid}/" <%= binary_path %>/relay.so
sed -i "s/00000000-0000-0000-0000-000000000000/${uuid}/" <%= binary_path %>/relay.so
<% end -%>

if [ -e /usr/lib/php/php-maintscript-helper ]; then
Expand Down
2 changes: 1 addition & 1 deletion build/fpm/src/deb/after-install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ set -e
uuid=$(cat /proc/sys/kernel/random/uuid)

<% binary_paths.split(' ').each do |binary_path| -%>
sed -i "s/BIN:31415926-5358-9793-2384-626433832795/BIN:${uuid}/" <%= binary_path %>/relay.so
sed -i "s/00000000-0000-0000-0000-000000000000/${uuid}/" <%= binary_path %>/relay.so
<% end -%>

exit 0
1 change: 0 additions & 1 deletion build/fpm/src/rpm/after-install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@ uuid=$(uuidgen -r)

<% binary_paths.split(' ').each do |binary_path| -%>
sed -i "s/00000000-0000-0000-0000-000000000000/${uuid}/" <%= binary_path %>/relay.so
sed -i "s/BIN:31415926-5358-9793-2384-626433832795/BIN:${uuid}/" <%= binary_path %>/relay.so
<% end -%>

exit 0

0 comments on commit e61716f

Please sign in to comment.