fix update

This commit is contained in:
2026-10-19 13:56:54 -06:00
parent a15eac4240
commit a65f07c22e
21 changed files with 241 additions and 64 deletions
+2 -36
View File
@@ -105,9 +105,6 @@ install_packages "${MAINTENANCE[@]}"
echo "Installing desktop environment..."
install_packages "${DESKTOP[@]}"
echo "Installing office packages..."
install_packages "${OFFICE[@]}"
echo "Installing media packages..."
install_packages "${MEDIA[@]}"
@@ -117,14 +114,7 @@ install_packages "${FONTS[@]}"
# Enable all systemd services listed in SERVICES array, then register the SSH
# Avahi service so the machine is discoverable over mDNS
echo "Configuring services..."
for service in "${SERVICES[@]}"; do
if ! systemctl is-enabled "$service" &> /dev/null; then
echo "Enabling $service..."
sudo systemctl enable "$service"
else
echo "$service is already enabled."
fi
done
enable_services "${SERVICES[@]}"
sudo cp /usr/share/doc/avahi/ssh.service /etc/avahi/services/
cd ~/.local/share/coredesktop
@@ -178,31 +168,7 @@ if ! systemctl is-active tailscaled &> /dev/null; then
fi
# Apply GNOME dconf settings only if the settings file has changed since last run
# (tracked via an MD5 checksum to avoid redundant writes)
SRC="$HOME/.local/share/coredesktop/gnome/gnome-settings.dconf"
CHECKSUM_FILE="$HOME/.local/share/coredesktop/gnome/.gnome-settings.md5"
if [ ! -f "$SRC" ]; then
echo "Error: $SRC not found, exiting."
exit 1
fi
CURRENT_SUM=$(md5sum "$SRC" | awk '{print $1}')
if [ -f "$CHECKSUM_FILE" ]; then
STORED_SUM=$(cat "$CHECKSUM_FILE")
else
STORED_SUM=""
fi
if [ "$CURRENT_SUM" != "$STORED_SUM" ]; then
echo "GNOME settings have changed, applying..."
dconf load /org/gnome/shell/extensions/ < "$SRC"
echo "$CURRENT_SUM" > "$CHECKSUM_FILE"
echo "Done."
else
echo "GNOME settings unchanged, skipping."
fi
bash ~/.local/share/coredesktop/gnome/apply-gnome-settings.sh
# Fix mDNS configuration if systemd-resolved is managing DNS on this system
if systemctl is-enabled systemd-resolved.service &> /dev/null; then