Skip to content

Commit

Permalink
Merge pull request #543 from serokell/krendelhoff/chore-hotfix-fedora…
Browse files Browse the repository at this point in the history
…-packages

[Chore] Symlink new and legacy names on fedora
  • Loading branch information
krendelhoff2 authored Oct 20, 2022
2 parents 071a6d3 + f0006b8 commit a585d6d
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 2 deletions.
2 changes: 2 additions & 0 deletions docker/package/model.py
Original file line number Diff line number Diff line change
Expand Up @@ -323,10 +323,12 @@ def gen_spec_file(self, build_deps, run_deps, out):
make {binary_name}
mkdir -p %{{buildroot}}/%{{_bindir}}
install -m 0755 {binary_name} %{{buildroot}}/%{{_bindir}}
ln -sf %{{_bindir}}/{binary_name} %{{buildroot}}/%{{_bindir}}/{self.name}
{systemd_install}
%files
%license LICENSE
%{{_bindir}}/{binary_name}
%{{_bindir}}/{self.name}
{systemd_files}
{systemd_macros}
"""
Expand Down
2 changes: 1 addition & 1 deletion docker/package/packages.py
Original file line number Diff line number Diff line change
Expand Up @@ -226,7 +226,7 @@ def mk_node_unit(
TEZOS_NODE_DIR="$(cat $(systemctl show -p FragmentPath tezos-node-{network}.service | cut -d'=' -f2) | grep 'DATA_DIR' | cut -d '=' -f3 | cut -d '"' -f1)" octez-node "$@"
EOM
chmod +x /usr/bin/octez-node-{network}
ln -s /usr/bin/octez-node-{network} /usr/bin/tezos-node-{network}
ln -sf /usr/bin/octez-node-{network} /usr/bin/tezos-node-{network}
"""
node_postrm_steps += f"""
rm -f /usr/bin/octez-node-{network} /usr/bin/tezos-node-{network}
Expand Down
2 changes: 1 addition & 1 deletion meta.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"release": "1",
"release": "2",
"maintainer": "Serokell <[email protected]>",
"tezos_ref": "v15.0-rc1"
}

0 comments on commit a585d6d

Please sign in to comment.