Skip to content

Commit

Permalink
Added snap commands for symlinking
Browse files Browse the repository at this point in the history
Signed-off-by: Utkarsh Bhatt <[email protected]>
  • Loading branch information
UtkarshBhatthere committed Oct 28, 2024
1 parent e1cd5bb commit d80ea45
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
3 changes: 2 additions & 1 deletion snap/hooks/install
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,5 @@ conf="${SNAP_DATA}/conf"
mkdir -p -m 0755 "${conf}"
cp "${SNAP}/share/metadata.yaml" "${conf}"

# add a symlink to etc/ceph
# TODO: add a symlink to etc/ceph
ln -s $conf /etc/ceph
4 changes: 3 additions & 1 deletion snap/hooks/remove
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
#!/bin/sh
set -uex
# remove the symlink to etc/ceph
conf="${SNAP_DATA}/conf"
# TODO: remove the symlink to etc/ceph
rm $conf

0 comments on commit d80ea45

Please sign in to comment.