Do all the upgrade work in that initial migration for old installations

This commit is contained in:
David Heinemeier Hansson
2025-11-21 19:02:19 +01:00
parent d87f0aaa19
commit 2bdf3fd450
4 changed files with 14 additions and 22 deletions

View File

@@ -9,17 +9,18 @@ export OMARCHY_PATH=$HOME/.local/share/omarchy
export PATH=$OMARCHY_PATH/bin/:$PATH
EOF
# Remove Zoom/qt5-remoteobjects to prevent a super lengthy build on old Omarchy installs
sudo pacman -Rns --noconfirm zoom qt5-remoteobjects
# Ensure we have the latest repos
omarchy-refresh-pacman-mirrorlist
if ! grep -q "omarchy" /etc/pacman.conf; then
sudo sed -i '/^\[core\]/i [omarchy]\nSigLevel = Optional TrustAll\nServer = https:\/\/pkgs.omarchy.org\/stable\/$arch\n' /etc/pacman.conf
fi
# Ensure we have the latest repos and are ready to pull
omarchy-refresh-pacman
sudo systemctl restart systemd-timesyncd
mkdir -p ~/.local/state/omarchy/migrations
touch ~/.local/state/omarchy/migrations/1751134560.sh
sudo systemctl restart systemd-timesyncd
# Remove Zoom/qt5-remoteobjects to prevent a super lengthy build on old Omarchy installs
sudo pacman -Rns --noconfirm zoom qt5-remoteobjects
# Get rid of old AUR packages
bash $OMARCHY_PATH/migrations/1756060611.sh
touch ~/.local/state/omarchy/migrations/1756060611.sh
bash omarchy-update-perform

View File

@@ -1,9 +0,0 @@
echo "Add Omarchy Package Repository"
omarchy-refresh-pacman-mirrorlist
if ! grep -q "omarchy" /etc/pacman.conf; then
sudo sed -i '/^\[core\]/i [omarchy]\nSigLevel = Optional TrustAll\nServer = https:\/\/pkgs.omarchy.org\/stable\/$arch\n' /etc/pacman.conf
sudo systemctl restart systemd-timesyncd
sudo pacman -Syu --noconfirm
fi

View File

@@ -1,4 +0,0 @@
echo "Ensure all indexes and packages are up to date"
omarchy-refresh-pacman-mirrorlist
sudo pacman -Syu --noconfirm