mirror of
https://github.com/basecamp/omarchy.git
synced 2026-02-17 15:25:37 +00:00
Do all the upgrade work in that initial migration for old installations
This commit is contained in:
4
bin/omarchy-refresh-pacman
Executable file
4
bin/omarchy-refresh-pacman
Executable file
@@ -0,0 +1,4 @@
|
|||||||
|
#!/bin/bash
|
||||||
|
|
||||||
|
sudo cp -f ~/.local/share/omarchy/default/pacman/pacman.conf /etc/pacman.conf
|
||||||
|
omarchy-refresh-pacman-mirrorlist
|
||||||
@@ -9,17 +9,18 @@ export OMARCHY_PATH=$HOME/.local/share/omarchy
|
|||||||
export PATH=$OMARCHY_PATH/bin/:$PATH
|
export PATH=$OMARCHY_PATH/bin/:$PATH
|
||||||
EOF
|
EOF
|
||||||
|
|
||||||
# Remove Zoom/qt5-remoteobjects to prevent a super lengthy build on old Omarchy installs
|
# Ensure we have the latest repos and are ready to pull
|
||||||
sudo pacman -Rns --noconfirm zoom qt5-remoteobjects
|
omarchy-refresh-pacman
|
||||||
|
sudo systemctl restart systemd-timesyncd
|
||||||
# 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
|
|
||||||
|
|
||||||
mkdir -p ~/.local/state/omarchy/migrations
|
mkdir -p ~/.local/state/omarchy/migrations
|
||||||
touch ~/.local/state/omarchy/migrations/1751134560.sh
|
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
|
bash omarchy-update-perform
|
||||||
|
|||||||
@@ -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
|
|
||||||
@@ -1,4 +0,0 @@
|
|||||||
echo "Ensure all indexes and packages are up to date"
|
|
||||||
|
|
||||||
omarchy-refresh-pacman-mirrorlist
|
|
||||||
sudo pacman -Syu --noconfirm
|
|
||||||
Reference in New Issue
Block a user