diff options
| author | Nippy <nippy@rp1.hu> | 2026-07-28 16:29:28 +0200 |
|---|---|---|
| committer | Nippy <nippy@rp1.hu> | 2026-07-28 16:29:28 +0200 |
| commit | 60973f87e140e0f370049f86bbce1e841f0416c5 (patch) | |
| tree | 44165fac889745cdbb5cd3c3f144f05ee2411950 /raveos-mirrorlist/raveos-mirrorlist.install | |
| parent | f75f64ad99a0c70b3a365c07ff513f341ba47b43 (diff) | |
| download | RaveOS-PKGBUILD-60973f87e140e0f370049f86bbce1e841f0416c5.tar.gz RaveOS-PKGBUILD-60973f87e140e0f370049f86bbce1e841f0416c5.zip | |
new settings
Diffstat (limited to 'raveos-mirrorlist/raveos-mirrorlist.install')
| -rw-r--r-- | raveos-mirrorlist/raveos-mirrorlist.install | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/raveos-mirrorlist/raveos-mirrorlist.install b/raveos-mirrorlist/raveos-mirrorlist.install new file mode 100644 index 0000000..ce67191 --- /dev/null +++ b/raveos-mirrorlist/raveos-mirrorlist.install @@ -0,0 +1,26 @@ +post_install() { + _patch_pacman_conf +} + +post_upgrade() { + _patch_pacman_conf +} + +_patch_pacman_conf() { + conf=/etc/pacman.conf + [ -f "$conf" ] || return 0 + + # Csak akkor nyulunk hozza, ha pontosan a regi, egysoros Server= allapotot + # talaljuk (meg nincs Include-ra atallitva) - igy nem irunk felul kezzel + # modositott konfigot. + if grep -qF 'Server = https://page.rp1.hu/x86_64/' "$conf" \ + && ! grep -qF 'Include = /etc/pacman.d/raveos-core-mirrorlist' "$conf"; then + sed -i \ + '\|^Server = https://page.rp1.hu/x86_64/$|c\Include = /etc/pacman.d/raveos-core-mirrorlist' \ + "$conf" + # Ha a masodlagos Server sor is mar ott volt kulon sorban, azt kivesszuk, + # mert most mar az Include fajl adja mindket szervert. + sed -i '\|^Server = https://github.com/rave-os/RaveOS-core-repo-mirror/releases/download/core-repo-x86_64/$|d' "$conf" + echo "raveos-mirrorlist: /etc/pacman.conf frissitve (raveos-core-repo -> Include mirrorlist, GitHub tartalek szerverrel)" + fi +} |