Initial commit
This commit is contained in:
15
resources/packaging/postinst
Executable file
15
resources/packaging/postinst
Executable file
@@ -0,0 +1,15 @@
|
||||
#!/bin/bash
|
||||
|
||||
BLOOM_UDEV_FILE_PATH=/etc/udev/rules.d/
|
||||
|
||||
if [ ! -f "${BLOOM_UDEV_FILE_PATH}/99-bloom.rules" ]; then
|
||||
sudo ln -s /opt/bloom/resources/UDevRules/99-bloom.rules "$BLOOM_UDEV_FILE_PATH";
|
||||
fi
|
||||
|
||||
|
||||
if [ -f "/usr/bin/bloom" ]; then
|
||||
sudo rm /usr/bin/bloom;
|
||||
fi
|
||||
|
||||
sudo chmod u=rwx,g=rwx,o=rx -R /opt/bloom
|
||||
ln -s /opt/bloom/bin/bloom /usr/bin/bloom;
|
||||
Reference in New Issue
Block a user