mirror of
https://github.com/basecamp/omarchy.git
synced 2026-02-17 15:25:37 +00:00
Compare commits
4 Commits
super-copy
...
polkit-err
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
267a9e1765 | ||
|
|
0e1f585166 | ||
|
|
d3f70a0c22 | ||
|
|
39541b4876 |
@@ -8,6 +8,7 @@ if [[ -f "$FIRST_RUN_MODE" ]]; then
|
||||
rm -f "$FIRST_RUN_MODE"
|
||||
|
||||
bash "$OMARCHY_PATH/install/first-run/battery-monitor.sh"
|
||||
bash "$OMARCHY_PATH/install/first-run/cleanup-reboot-sudoers.sh"
|
||||
bash "$OMARCHY_PATH/install/first-run/firewall.sh"
|
||||
bash "$OMARCHY_PATH/install/first-run/dns-resolver.sh"
|
||||
bash "$OMARCHY_PATH/install/first-run/gnome-theme.sh"
|
||||
|
||||
3
install/first-run/cleanup-reboot-sudoers.sh
Normal file
3
install/first-run/cleanup-reboot-sudoers.sh
Normal file
@@ -0,0 +1,3 @@
|
||||
if sudo test -f /etc/sudoers.d/99-omarchy-installer-reboot; then
|
||||
sudo rm -f /etc/sudoers.d/99-omarchy-installer-reboot
|
||||
fi
|
||||
@@ -2,6 +2,8 @@ KEYRING_DIR="$HOME/.local/share/keyrings"
|
||||
KEYRING_FILE="$KEYRING_DIR/Default_keyring.keyring"
|
||||
DEFAULT_FILE="$KEYRING_DIR/default"
|
||||
|
||||
mkdir -p $KEYRING_DIR
|
||||
|
||||
cat << EOF | tee "$KEYRING_FILE"
|
||||
[keyring]
|
||||
display-name=Default keyring
|
||||
|
||||
@@ -4,7 +4,7 @@
|
||||
1password-beta
|
||||
1password-cli
|
||||
alacritty
|
||||
asdcontrol-git
|
||||
asdcontrol
|
||||
avahi
|
||||
bash-completion
|
||||
bat
|
||||
|
||||
@@ -1,2 +1,3 @@
|
||||
run_logged $OMARCHY_INSTALL/post-install/pacman.sh
|
||||
source $OMARCHY_INSTALL/post-install/allow-reboot.sh
|
||||
source $OMARCHY_INSTALL/post-install/finished.sh
|
||||
|
||||
5
install/post-install/allow-reboot.sh
Normal file
5
install/post-install/allow-reboot.sh
Normal file
@@ -0,0 +1,5 @@
|
||||
# Allow passwordless reboot for the installer - removed in first-run
|
||||
sudo tee /etc/sudoers.d/99-omarchy-installer-reboot >/dev/null <<EOF
|
||||
$USER ALL=(ALL) NOPASSWD: /usr/bin/reboot
|
||||
EOF
|
||||
sudo chmod 440 /etc/sudoers.d/99-omarchy-installer-reboot
|
||||
@@ -31,10 +31,10 @@ if gum confirm --padding "0 0 0 $((PADDING_LEFT + 32))" --show-help=false --defa
|
||||
# Clear screen to hide any shutdown messages
|
||||
clear
|
||||
|
||||
# Use systemctl if available, otherwise fallback to reboot command
|
||||
if command -v systemctl &>/dev/null; then
|
||||
systemctl reboot --no-wall 2>/dev/null
|
||||
if [[ -n "${OMARCHY_CHROOT_INSTALL:-}" ]]; then
|
||||
touch /var/tmp/omarchy-install-completed
|
||||
exit 0
|
||||
else
|
||||
reboot 2>/dev/null
|
||||
sudo reboot 2>/dev/null
|
||||
fi
|
||||
fi
|
||||
|
||||
Reference in New Issue
Block a user