Cleanup install.sh, post-install.sh and utils.sh
Signed-off-by: Severin Kaderli <severin.kaderli@gmail.com>
This commit is contained in:
parent
e405bbcd89
commit
3a8dd98e68
4 changed files with 33 additions and 26 deletions
23
install.sh
23
install.sh
|
@ -1,7 +1,18 @@
|
|||
#!/bin/bash
|
||||
#
|
||||
# SCRIPT NAME:
|
||||
# install.sh
|
||||
#
|
||||
# Author: Severin Kaderli <severin.kaderli@gmail.com>
|
||||
# Usage: ./install.sh
|
||||
# AUTHOR:
|
||||
# Severin Kaderli <severin.kaderli@gmail.com>
|
||||
#
|
||||
# DESCRIPTION:
|
||||
# This is the main installation script for my dotfiles. It setups the symlinks
|
||||
# to the neeeded files, creates new directories, enables systemd services,
|
||||
# installs pacman packages and gives out the correct permissions to files.
|
||||
#
|
||||
# USAGE:
|
||||
# ./install.sh
|
||||
. ./system/bin/utils.sh
|
||||
|
||||
#######################################
|
||||
|
@ -9,10 +20,10 @@
|
|||
#######################################
|
||||
# Array of directories which should be created
|
||||
DIRECTORIES=(
|
||||
".logs"
|
||||
"Build"
|
||||
"Downloads"
|
||||
"Projects"
|
||||
".logs"
|
||||
)
|
||||
|
||||
# Array of files which should be symlinked in the home folder
|
||||
|
@ -54,7 +65,6 @@ SYSTEMD_SERVICES=(
|
|||
#######################################
|
||||
# Main code
|
||||
#######################################
|
||||
# Creating needed directories
|
||||
print_header "Creating directories"
|
||||
for dir in "${DIRECTORIES[@]}"
|
||||
do
|
||||
|
@ -76,17 +86,12 @@ print_header "Installing packages"
|
|||
#aurman -S --noconfirm $(cat "${PACKAGES_DIR}/packages.list")
|
||||
#aurman -S --noconfirm $(cat "${PACKAGES_DIR}/packages2.list")
|
||||
|
||||
# Create symlinks to dotfiles
|
||||
print_header "Creating symlinks"
|
||||
for file in "${LINKED_FILES_HOME[@]}"
|
||||
do
|
||||
create_link "${file}"
|
||||
done
|
||||
|
||||
print_header "Asking for root permissions"
|
||||
sudo -v
|
||||
|
||||
# Give scripts execute permissions
|
||||
print_header "Give permissions"
|
||||
set_permission severin 744 "${HOME}/bin"
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue