

$(whoami) instead of simply $USER /var/home is on a different disk/partition at boot time, because it is lacking dependency declarations in the [Unit] section...RequiresMountFor=/var/home/$USERman systemctl section for the link command for explanation, and suggestion instead of thecp you use restart instead of disable then enable --now again...#!/usr/bin/env bash
cd ~/.local/bin/hhd
git pull
./venv/bin/pip install -e .
sudo chcon -u system_u -r object_r --type=bin_t /var/home/$USER/.local/bin/hhd/venv/bin/hhd
sudo systemctl daemon-reload
sudo restart hhd_local