-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathinstall.sh
More file actions
26 lines (21 loc) · 825 Bytes
/
Copy pathinstall.sh
File metadata and controls
26 lines (21 loc) · 825 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
#!/bin/bash
# Exit immediately if a command exits with a non-zero status
set -eEo pipefail
# Define Dotfiles locations
export DOTFILES_PATH="$HOME/dotfiles"
export DOTFILES_INSTALL="$DOTFILES_PATH/install"
# TODO:
# export DOTFILES_INSTALL_LOG_FILE="/var/log/dotfiles-install.log"
export PATH="$DOTFILES_PATH/.local/bin:$PATH"
# Install
# source "$OMARCHY_INSTALL/helpers/all.sh"
source "$DOTFILES_INSTALL/pre-install/all.sh"
source "$DOTFILES_INSTALL/packaging/all.sh"
source "$DOTFILES_INSTALL/config/all.sh"
# source "$OMARCHY_INSTALL/login/all.sh"
# Allow passwordless reboot for the installer - removed on first-run
sudo tee /etc/sudoers.d/99-dotfiles-installer-reboot >/dev/null <<EOF
$USER ALL=(ALL) NOPASSWD: /usr/bin/reboot
EOF
sudo chmod 440 /etc/sudoers.d/99-dotfiles-installer-reboot
sudo reboot 2>/dev/null