Add installation of dde to install script
Signed-off-by: Severin Kaderli <severin@kaderli.dev>
This commit is contained in:
parent
0c06679e5f
commit
8aba167258
1 changed files with 15 additions and 24 deletions
39
install
39
install
|
@ -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
|
||||||
|
|
||||||
|
|
||||||
###############################################################################
|
###############################################################################
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue