Add installation of dde to install script

Signed-off-by: Severin Kaderli <severin@kaderli.dev>
This commit is contained in:
Severin Kaderli 2019-06-25 11:04:22 +02:00
parent 0c06679e5f
commit 8aba167258
Signed by: severinkaderli
GPG key ID: F419F8835B72F0C4

39
install
View file

@ -27,18 +27,14 @@ HOST="$(hostname)"
DIRECTORIES=( DIRECTORIES=(
".local/log" ".local/log"
".local/share/gnupg/" ".local/share/gnupg/"
"build"
"documents" "documents"
"downloads" "downloads"
"videos"
)
PRIVATE_DIRECTORIES=(
"build"
"projects" "projects"
) "videos"
"work/opensource"
WORK_DIRECTORIES=( "work/projects"
"work" "work/tools"
) )
# Files which should be symlinked in the home folder # Files which should be symlinked in the home folder
@ -239,20 +235,6 @@ do
mkdir -p "${HOME}/${dir}" mkdir -p "${HOME}/${dir}"
done done
if [ "${IS_WORK}" = "1" ]; then
for dir in "${WORK_DIRECTORIES[@]}"
do
print_log "Creating directory ${YELLOW}${HOME}/${dir}${RESET}"
mkdir -p "${HOME}/${dir}"
done
else
for dir in "${PRIVATE_DIRECTORIES[@]}"
do
print_log "Creating directory ${YELLOW}${HOME}/${dir}${RESET}"
mkdir -p "${HOME}/${dir}"
done
fi
print_section "Setup notes directory" print_section "Setup notes directory"
if [ ! -d "${HOME}/notes" ]; then if [ ! -d "${HOME}/notes" ]; then
git clone gl:notes "${HOME}/notes" git clone gl:notes "${HOME}/notes"
@ -281,6 +263,15 @@ else
cd "${OLD_DIR}" || exit cd "${OLD_DIR}" || exit
fi fi
###############################################################################
# Prepare work tools #
###############################################################################
print_section "Prepare work tools"
print_log "Installing dde"
if [ ! -d "${HOME}/work/tools/dde" ]; then
git clone "https://github.com/whatwedo/dde" "${HOME}/work/tools/dde"
fi
############################################################################### ###############################################################################
# Creating symlinks # # Creating symlinks #
@ -371,7 +362,7 @@ done
# Enable ntp # # Enable ntp #
############################################################################### ###############################################################################
print_section "Enabling ntp" print_section "Enabling ntp"
timedatectl set-ntp true sudo timedatectl set-ntp true
############################################################################### ###############################################################################