From: Christian Heller Date: Wed, 23 Oct 2024 03:42:41 +0000 (+0200) Subject: Fix bugs. X-Git-Url: https://plomlompom.com/repos/%7B%7Bprefix%7D%7D/copy_free?a=commitdiff_plain;h=c08e1e93694565d6e404f8e49f9323ec63dfd44b;p=config Fix bugs. --- 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