Adapted paths and deleted scripts which are not neccessary anymore

This commit is contained in:
Kevin Veen-Birkenbach 2020-05-03 20:32:57 +02:00
parent 60c9ce8a0f
commit e7908d4359
5 changed files with 2 additions and 27 deletions

View File

@ -1,6 +0,0 @@
#!/bin/bash
# Executes all scripts which are necessary to backup data
# @author Kevin Veen-Birkenbach [aka. Frantz]
source "$(dirname "$(readlink -f "${0}")")/../base.sh" || (echo "Loading base.sh failed." && exit 1)
bash "$SCRIPT_PATH""client/import-data-from-system.sh"
bash "$SCRIPT_PATH""client/push-local-repositories.sh"

View File

@ -3,4 +3,4 @@
# @author Kevin Veen-Birkenbach [aka. Frantz] # @author Kevin Veen-Birkenbach [aka. Frantz]
# shellcheck source=/dev/null # Deactivate SC1090 # shellcheck source=/dev/null # Deactivate SC1090
source "$(dirname "$(readlink -f "${0}")")/../base.sh" || (echo "Loading base.sh failed." && exit 1) source "$(dirname "$(readlink -f "${0}")")/../base.sh" || (echo "Loading base.sh failed." && exit 1)
bash "$SCRIPT_PATH""client/import-data-from-system.sh" reverse bash "$SCRIPT_PATH""data/import-from-system.sh" reverse

View File

@ -9,7 +9,7 @@ source "$(dirname "$(readlink -f "${0}")")/../base.sh" || (echo "Loading base.sh
if [ -z "$(mount | grep "$DECRYPTED_PATH")" ] if [ -z "$(mount | grep "$DECRYPTED_PATH")" ]
then then
info "The decrypted folder $DECRYPTED_PATH is locked. You need to unlock it!" && info "The decrypted folder $DECRYPTED_PATH is locked. You need to unlock it!" &&
bash "$SCRIPT_PATH/unlock.sh" || error "Unlocking failed."; bash "$SCRIPT_PATH""encryption/unlock.sh" || error "Unlocking failed.";
fi fi
if [ "$1" = "reverse" ] if [ "$1" = "reverse" ]
then then

View File

@ -1,6 +0,0 @@
#!/bin/bash
#
# Pushs all repositories
# @author Kevin Veen-Birkenbach [aka. Frantz]
source "$(dirname "$(readlink -f "${0}")")/../base.sh" || (echo "Loading base.sh failed." && exit 1)
bash "$SCRIPT_PATH/push-local-repositories.sh" push

View File

@ -1,13 +0,0 @@
#!/bin/bash
#
# Pushs all repositories
# @param $1 git command which should be executed instead of default pull
# @author Kevin Veen-Birkenbach [aka. Frantz]
source "$(dirname "$(readlink -f "${0}")")/../base.sh" || (echo "Loading base.sh failed." && exit 1)
if [ $# -eq 1 ]
then
git_command=$1
else
git_command="push"
fi
find $LOCAL_REPOSITORIES_PATH -maxdepth 1 -mindepth 1 -type d -exec bash -c "(cd {} && echo 'In directory: {}' && git status && echo 'Executes git $git_command' && git $git_command --all)" \;