home · contact · privacy
Improve seedbox config.
authorChristian Heller <c.heller@plomlompom.de>
Tue, 22 Oct 2024 20:46:21 +0000 (22:46 +0200)
committerChristian Heller <c.heller@plomlompom.de>
Tue, 22 Oct 2024 20:46:21 +0000 (22:46 +0200)
bookworm/setup_scripts/setup_seedbox.sh
bookworm/setup_scripts/upgrade_from_older_release.sh

index 7d0cb8bd0b05372f85c3f6566d592a9d7693f98a..f64101153ff38fb92a2d4cf97bca58f0be9ea99a 100755 (executable)
@@ -5,10 +5,15 @@ set -e
 
 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
index 776bb7ad196923aa0673ef57ad09b47e53f1e770..c13b8cab5b6e648bfe123d4e6b10d9379a9e2d27 100755 (executable)
@@ -11,6 +11,7 @@ set -e
 
 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