From c08e1e93694565d6e404f8e49f9323ec63dfd44b Mon Sep 17 00:00:00 2001 From: Christian Heller Date: Wed, 23 Oct 2024 05:42:41 +0200 Subject: [PATCH] Fix bugs. --- testing/scripts/setup_raspi.sh | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/testing/scripts/setup_raspi.sh b/testing/scripts/setup_raspi.sh index 04c41e6..d3304cf 100755 --- a/testing/scripts/setup_raspi.sh +++ b/testing/scripts/setup_raspi.sh @@ -9,22 +9,22 @@ URL_PUBLIC_KEY="https://dump.plomlompom.com/dump/${FILENAME_PUBLIC_KEY}" apt update apt -y install wget wget "${URL_PUBLIC_KEY}" -cat "${FILENAME_PUBLIC_KEY}" >> .ssh/authorized_keys +cat "${FILENAME_PUBLIC_KEY}" >> ~/.ssh/authorized_keys rm "${FILENAME_PUBLIC_KEY}" # service sshd restart # properly apt system -for root in "${PATH_MANY} ../"; do +for root in "${PATH_MANY}" '../'; do copy_dirtree "${root}/${NAME_ETC_DIR}" "" all done apt update mark_nonrequireds_auto -for root in "${PATH_MANY} ../"; do +for root in "${PATH_MANY}" '../'; do install_for_modules "${root}/${NAME_APTMARK_DIR}" all done apt -y --purge autoremove -apt -y -o Dpkg::Options::="--force-confnew" upgrade -apt -y -o Dpkg::Options::="--force-confnew" full-upgrade +apt -y -o Dpkg::Options::='--force-confnew' upgrade +apt -y -o Dpkg::Options::='--force-confnew' full-upgrade # Ensure our desired locale is available. # locale-gen @@ -33,8 +33,8 @@ apt -y -o Dpkg::Options::="--force-confnew" full-upgrade # ln -sf /usr/share/zoneinfo/Europe/Berlin /etc/localtime # Set up users and their environments. -for root in "${PATH_MANY} ../"; do - copy_dirtree "${root}/${NAME_HOME_DIR}" "/root" minimal root +for root in "${PATH_MANY}" '../'; do + copy_dirtree "${root}/${NAME_HOME_DIR}" '/root' minimal root done adduser --disabled-password --gecos "" plom usermod -a -G sudo plom -- 2.30.2