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:
parent
62dd123226
commit
6e0c93760a
1 changed files with 14 additions and 10 deletions
|
@ -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
|
||||
|
||||
|
||||
|
|
Loading…
Reference in a new issue