Skip to content

Commit

Permalink
build: fixup linux plugin directory in packaging (#355)
Browse files Browse the repository at this point in the history
* build: fixup linux plugin directory in packaging

* fix path

Co-authored-by: Piotr Kazmierczak <[email protected]>

---------

Co-authored-by: Piotr Kazmierczak <[email protected]>
  • Loading branch information
shoenig and pkazmierczak authored Jun 17, 2024
1 parent 775c215 commit 446ca4a
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 3 deletions.
8 changes: 6 additions & 2 deletions .release/linux/postinst
Original file line number Diff line number Diff line change
@@ -1,4 +1,8 @@
#!/bin/sh

mkdir -p /opt/nomad/plugins
ln -s /usr/bin/nomad-driver-podman /opt/nomad/plugins/nomad-driver-podman
# Ensure <data_dir>/plugins exists.
mkdir -p /opt/nomad/data/plugins

# Symlink driver in the plugins directory.
ln -s /usr/bin/nomad-driver-podman /opt/nomad/data/plugins/nomad-driver-podman

3 changes: 2 additions & 1 deletion .release/linux/postrm
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
#!/bin/sh

rm -f /opt/nomad/plugins/nomad-driver-podman
# Remove symlink from plugins directory.
rm -f /opt/nomad/data/plugins/nomad-driver-podman

0 comments on commit 446ca4a

Please sign in to comment.