This commit is contained in:
simono41 2018-08-22 00:33:30 +02:00
parent eef7c6056f
commit a05e726edc
3 changed files with 28 additions and 2 deletions

View file

@ -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

View file

@ -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
}

22
update-packages Executable file
View file

@ -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!!!"