mirror of
https://github.com/kevinveenbirkenbach/linux-image-manager.git
synced 2024-11-21 22:51:05 +01:00
Optimized template structure
This commit is contained in:
parent
d68423ba6f
commit
d694807c1a
@ -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)
|
||||
|
@ -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."
|
||||
|
Loading…
Reference in New Issue
Block a user