expect_setup_finished_file setup_server_has_been_run setup_server.sh
+plom_home_dir=/home/plom
+
cd "${setup_scripts_dir}"
-./copy_dirtree.sh "${config_tree_prefix}/home_files" "" seedbox
+cp "${config_tree_prefix}/home_files/seedbox/.rtorrent.rc" "${plom_home_dir}"
+chown plom:plom "${plom_home_dir}/.rtorrent.rc"
./copy_dirtree.sh "${config_tree_prefix}/etc_files" "" seedbox
./install_for_target.sh seedbox
-mkdir /home/plom/{downloads|session}
-chown plom:plom /home/plom/{downloads|session}
+mkdir "${plom_home_dir}/downloads"
+chown plom:plom "${plom_home_dir}/downloads"
+mkdir "${plom_home_dir}/session"
+chown plom:plom "${plom_home_dir}/session"
systemctl enable rtorrent.service --now
path_sources_list="/etc/apt/sources.list"
+export DEBIAN_FRONTEND=noninteractive
apt update
apt -y -o Dpkg::Options::="--force-confnew" upgrade
apt -y -o Dpkg::Options::="--force-confnew" full-upgrade