Skip to content

Commit

Permalink
build: fixup linux plugin directory in packaging
Browse files Browse the repository at this point in the history
  • Loading branch information
shoenig committed Jun 17, 2024
1 parent 775c215 commit 2489e0d
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/plugins/nomad-driver-exec2

0 comments on commit 2489e0d

Please sign in to comment.