diff --git a/.includes/functions.sh b/.includes/functions.sh index 1130e68..dda0cf4 100755 --- a/.includes/functions.sh +++ b/.includes/functions.sh @@ -29,14 +29,14 @@ attention() { add_stormux_repo() { # Check if StormUX repository is already configured - if grep -q "aarch64.stormux.org" /etc/pacman.conf; then + if grep -q "packages.stormux.org" /etc/pacman.conf; then return 0 fi infobox "Adding StormUX repository and importing signing key..." # Import the repository signing key - if ! curl -s https://aarch64.stormux.org/stormux-repo.pub | sudo "${sudoFlags[@]}" pacman-key --add -; then + if ! curl -s https://packages.stormux.org/stormux-repo.pub | sudo "${sudoFlags[@]}" pacman-key --add -; then msgbox "Failed to download StormUX repository key." return 1 fi @@ -57,7 +57,7 @@ add_stormux_repo() { if [[ "$line" =~ ^\[.*\]$ ]] && [[ ! "$line" =~ ^\[(core|extra|multilib|testing|multilib-testing)\]$ ]] && [[ "$added_repo" == false ]]; then echo "[stormux]" >> "$temp_conf" echo "SigLevel = Required" >> "$temp_conf" - echo "Server = https://aarch64.stormux.org/" >> "$temp_conf" + echo "Server = https://packages.stormux.org/\$repo/\$arch" >> "$temp_conf" echo "" >> "$temp_conf" added_repo=true fi @@ -69,7 +69,7 @@ add_stormux_repo() { echo "" >> "$temp_conf" echo "[stormux]" >> "$temp_conf" echo "SigLevel = Required" >> "$temp_conf" - echo "Server = https://aarch64.stormux.org/\$repo-\$arch" >> "$temp_conf" + echo "Server = https://packages.stormux.org/\$repo/\$arch" >> "$temp_conf" fi # Replace the original pacman.conf