Files
Earle Lowe 866493af56 CHIA-752 - set permissions in postinst.sh for chrome-sandbox (#18164)
* CHIA-752 - set permissions in postinst.sh for chrome-sandbox

* Add check for permissions of chrome-sandbox

* one-liner permissions check

* prettier fix

* Update build-linux-installer-deb.yml
2024-06-13 13:37:40 -05:00

10 lines
389 B
Bash

#!/usr/bin/env bash
# Post install script for the UI .deb to place symlinks in places to allow the CLI to work similarly in both versions
set -e
chown -f root:root /opt/chia/chrome-sandbox || true
chmod -f 4755 /opt/chia/chrome-sandbox || true
ln -s /opt/chia/resources/app.asar.unpacked/daemon/chia /usr/bin/chia || true
ln -s /opt/chia/chia-blockchain /usr/bin/chia-blockchain || true