fix
This commit is contained in:
parent
eef7c6056f
commit
a05e726edc
3 changed files with 28 additions and 2 deletions
|
@ -593,9 +593,13 @@ chmod +x /usr/bin/aurupdater
|
||||||
setcap cap_net_raw+ep /bin/ping
|
setcap cap_net_raw+ep /bin/ping
|
||||||
|
|
||||||
# systemd-manjaro_update-bootloader
|
# 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
|
chmod +x /usr/bin/update-bootloader
|
||||||
|
|
||||||
|
# update-packages
|
||||||
|
|
||||||
|
cp /opt/${repo}/update-packages /usr/bin/update-packages
|
||||||
|
chmod +x /usr/bin/update-packages
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -324,7 +324,7 @@ function removeinstaller {
|
||||||
|
|
||||||
function freshinstall {
|
function freshinstall {
|
||||||
if [ "${update}" != "n" ] && [ "${offline}" != "n" ]; then
|
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
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
22
update-packages
Executable file
22
update-packages
Executable 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!!!"
|
Loading…
Reference in a new issue