Optimized template structure

This commit is contained in:
Kevin Veen-Birkenbach 2020-05-19 18:17:31 +02:00
parent d68423ba6f
commit d694807c1a
4 changed files with 5 additions and 3 deletions

View File

@ -5,13 +5,15 @@
# shellcheck disable=SC2034 #Deactivate checking of unused variables
REPOSITORY_PATH=$(readlink -f "$(dirname "$(readlink -f "${0}")")/../../") # Propably this can be optimized
PACKAGE_PATH="$REPOSITORY_PATH/configuration/packages/"
CONFIGURATION_PATH="$REPOSITORY_PATH""/configuration/"
PACKAGE_PATH="$CONFIGURATION_PATH""packages/"
TEMPLATE_PATH="$CONFIGURATION_PATH""templates/";
HOME_TEMPLATE_PATH="$TEMPLATE_PATH""home/";
ENCRYPTED_PATH="$REPOSITORY_PATH/.encrypted";
DECRYPTED_PATH="$REPOSITORY_PATH/decrypted";
SCRIPT_PATH="$REPOSITORY_PATH/scripts/";
DATA_PATH="$DECRYPTED_PATH/data";
BACKUP_PATH="$DECRYPTED_PATH/backup";
TEMPLATE_PATH="$REPOSITORY_PATH/templates";
COLOR_RED=$(tput setaf 1)
COLOR_GREEN=$(tput setaf 2)

View File

@ -28,7 +28,7 @@ install_yay_packages_if_needed(){
info "Start setup of customized core software..."
info "Copying templates to home folder..." &&
cp -rfv "$TEMPLATE_PATH/." "$HOME" || error "Copy templates failed."
cp -rfv "$HOME_TEMPLATE_PATH/." "$HOME" || error "Copy templates failed."
info "Update packages..." &&
sudo pacman -Syyu || error "Package syncronisation failed."