From: Christian Heller Date: Tue, 22 Oct 2024 20:46:21 +0000 (+0200) Subject: Improve seedbox config. X-Git-Url: https://plomlompom.com/repos/%7B%7Bdb.prefix%7D%7D/static/%7B%7B%20web_path%20%7D%7D/decks/day?a=commitdiff_plain;h=c34e18221916fe7682ef0eab2a48cd9d49eb9d10;p=config Improve seedbox config. --- diff --git a/bookworm/setup_scripts/setup_seedbox.sh b/bookworm/setup_scripts/setup_seedbox.sh index 7d0cb8b..f641011 100755 --- a/bookworm/setup_scripts/setup_seedbox.sh +++ b/bookworm/setup_scripts/setup_seedbox.sh @@ -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 diff --git a/bookworm/setup_scripts/upgrade_from_older_release.sh b/bookworm/setup_scripts/upgrade_from_older_release.sh index 776bb7a..c13b8ca 100755 --- a/bookworm/setup_scripts/upgrade_from_older_release.sh +++ b/bookworm/setup_scripts/upgrade_from_older_release.sh @@ -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