diff --git a/arch-graphical-install-auto b/arch-graphical-install-auto index 34b01ca..342678d 100755 --- a/arch-graphical-install-auto +++ b/arch-graphical-install-auto @@ -593,9 +593,13 @@ chmod +x /usr/bin/aurupdater setcap cap_net_raw+ep /bin/ping # systemd-manjaro_update-bootloader -cp /opt/${repo}/update-bootloader ${mountpoint}/usr/bin/update-bootloader +cp /opt/${repo}/update-bootloader /usr/bin/update-bootloader chmod +x /usr/bin/update-bootloader +# update-packages + +cp /opt/${repo}/update-packages /usr/bin/update-packages +chmod +x /usr/bin/update-packages diff --git a/arch-install b/arch-install index 9ecef70..2d2786c 100755 --- a/arch-install +++ b/arch-install @@ -324,7 +324,7 @@ function removeinstaller { function freshinstall { if [ "${update}" != "n" ] && [ "${offline}" != "n" ]; then - arch-chroot ${mountpoint} "cd /opt/${repo}/; git pull; pacman -Syu $(cat /opt/${repo}/packages_${version}.txt) --needed --noconfirm" + arch-chroot ${mountpoint} update-packages fi } diff --git a/update-packages b/update-packages new file mode 100755 index 0000000..0e4c170 --- /dev/null +++ b/update-packages @@ -0,0 +1,22 @@ +#!/bin/bash + +set -ex + +repo=SpectreOS +repo1=shell-scripte + +cd /opt/${repo} +git reset --hard +git pull + +function standartinstallation() { + pacman -Syu $(cat /opt/${repo}/packages_${version}.txt) --needed --noconfirm --ignore linux +} + +standartinstallation + +cd /opt/${repo1} +git reset --hard +git pull + +echo "Fertig!!!"