1
0

Add archlinux-keyring update and system upgrade steps to netupgrade script

This commit is contained in:
2026-02-14 01:33:19 +01:00
parent 1d4a884195
commit 09d4815a88

View File

@@ -169,6 +169,10 @@ runCmd() { #$1=host $2=name #3=cmd
if [ ${YES} == 1 ]; then
YESARG="--noconfirm"
fi
echo "pacman -Sy ${YESARG} archlinux-keyring" | tee -a "${LOGFILENAME}"
if ! ssh root@"${HOST}" pacman -Sy ${YESARG} archlinux-keyring | tee -a "${LOGFILENAME}"; then
ERROR=1
fi
echo "pacman -Syu ${YESARG}" | tee -a "${LOGFILENAME}"
if ! ssh root@"${HOST}" pacman -Syu ${YESARG} | tee -a "${LOGFILENAME}"; then
ERROR=1