home · contact · privacy
Fix.
authorChristian Heller <c.heller@plomlompom.de>
Tue, 22 Apr 2025 03:42:23 +0000 (05:42 +0200)
committerChristian Heller <c.heller@plomlompom.de>
Tue, 22 Apr 2025 03:42:23 +0000 (05:42 +0200)
bookworm/scripts/lib/install_tags [new file with mode: 0644]
bookworm/scripts/setup_catgirl.sh
bookworm/scripts/setup_seedbox.sh
testing/scripts/lib/set_hostname_and_hosts [new symlink]

diff --git a/bookworm/scripts/lib/install_tags b/bookworm/scripts/lib/install_tags
new file mode 100644 (file)
index 0000000..8cd5c3e
--- /dev/null
@@ -0,0 +1,9 @@
+. lib/copy_dirtrees_of_tags
+. lib/ensure_packages_of_tags
+
+install_tags() {
+    _INSTALL_TAGS="$@"
+    echo "Installing packages and files for: ${_INSTALL_TAGS}"
+    ensure_packages_of_tags ${_INSTALL_TAGS}
+    copy_dirtrees_of_tags ${_INSTALL_TAGS}
+}
index 53be07cfa2fa5e4fb7d952d8eabeb6aff19688b0..5c0d0dc25ef0bd81600c836f6ea866dfd72aeb12 100755 (executable)
@@ -3,21 +3,16 @@ set -e
 cd $(dirname "$0")
 . lib/check_finished_marker
 . lib/constants_user  # PATH_USER_HOME
-. lib/copy_dirtrees_of_tags
-. lib/ensure_packages_of_tags
 . lib/expect_n_args
+. lib/install_tags
 
-check_finished_marker 'setup_server'
 expect_n_args 1 1 'IRC_PASSWORD' $@
 IRC_PASSWORD="$1"
 
-PATH_USER_CONF_CATGIRL="${PATH_USER_HOME}/.config/catgirl/libera"
-INSTALL_TAGS=catgirl
-
-echo "\nInstalling packages, /etc and /home files."
-ensure_packages_of_tags ${INSTALL_TAGS}
-copy_dirtrees_of_tags ${INSTALL_TAGS}
+check_finished_marker 'setup_server'
+install_tags catgirl
 
+PATH_USER_CONF_CATGIRL="${PATH_USER_HOME}/.config/catgirl/libera"
 echo "\nWriting provided password into ${PATH_USER_CONF_CATGIRL}."
 sed -i "s/REPLACE_WITH_IRC_PASSWORD/${IRC_PASSWORD}/g" "${PATH_USER_CONF_CATGIRL}"
 
index 66c528937d5877360422129a6105fb150858f6e4..513a72c15be365e3781f0b740c5f8e29d3b8c121 100755 (executable)
@@ -2,15 +2,13 @@
 set -e
 cd $(dirname "$0")
 . lib/check_finished_marker
-. lib/ensure_packages_of_tags
-. lib/copy_dirtrees_of_tags
+. lib/expect_n_args
+. lib/install_tags
 
-check_finished_marker 'setup_server'
-INSTALL_TAGS=seedbox
+expect_n_args 0 0 '' $@
 
-echo "\nInstalling packages, /etc and /home files."
-ensure_packages_of_tags ${INSTALL_TAGS}
-copy_dirtrees_of_tags ${INSTALL_TAGS}
+check_finished_marker 'setup_server'
+install_tags seedbox 
 
-echo "\nActivating service."
+echo "\nActivating rtorrent tmux session service."
 systemctl enable --now rtorrent
diff --git a/testing/scripts/lib/set_hostname_and_hosts b/testing/scripts/lib/set_hostname_and_hosts
new file mode 120000 (symlink)
index 0000000..691795b
--- /dev/null
@@ -0,0 +1 @@
+../../../bookworm/scripts/lib/set_hostname_and_hosts
\ No newline at end of file