Install mackup only on clients

Non-clients do not have access to my internal cloud folders
=> check if one of them exists or not to determine client vs. server
This commit is contained in:
Alexander Hess 2023-09-13 11:40:42 +02:00
parent 62dd123226
commit 6e0c93760a
Signed by: alexander
GPG key ID: 344EA5AB10D868E0

View file

@ -41,6 +41,8 @@ if _command_exists pip; then
# Ensure `pipx` is installed in the user's local environment
pip install --upgrade --user pipx
if [ -d "$HOME/data/getraenkemarkt" ]; then
# (Re-)Install `mackup` via `pipx` in the user's local environment
export PIPX_BIN_DIR=$XDG_BIN_HOME
export PIPX_HOME="$XDG_DATA_HOME/pipx"
@ -54,6 +56,8 @@ if _command_exists pip; then
$XDG_BIN_HOME/mackup restore
fi
fi