target_root="$2"
shift 2
modules="$@"
+ initial_directory="$(pwd)"
for module in "${modules}"; do
mkdir -p "${source_root}/${module}"
cd "${source_root}/${module}"
cp "${source_path}" "${target_path}"
done
done
+ cd "${initial_directory}"
}
install_for_modules() {
# 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
# ln -sf /usr/share/zoneinfo/Europe/Berlin /etc/localtime
# Set up users and their environments.
-for root in "${PATH_MANY}" '../'; do
+for root in "${PATH_MANY}" '..'; do
copy_dirtree "${root}/${NAME_HOME_DIR}" '/root' minimal root
done
adduser --disabled-password --gecos "" plom