From 3c307e1e9df40444e45f321649e956c0d5d598ae Mon Sep 17 00:00:00 2001 From: vhsdream Date: Sun, 24 Aug 2025 09:48:55 -0400 Subject: [PATCH] MediaManager: fix start script path, move email prompt to start --- install/mediamanager-install.sh | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/install/mediamanager-install.sh b/install/mediamanager-install.sh index ad2cb345..f58d12ff 100644 --- a/install/mediamanager-install.sh +++ b/install/mediamanager-install.sh @@ -13,6 +13,11 @@ setting_up_container network_check update_os +read -r -p "Enter the email address of your first admin user: " admin_email +if [[ "$admin_email" ]]; then + EMAIL="$admin_email" +fi + msg_info "Installing dependencies" $STD apt-get install -y yq msg_ok "Installed dependencies" @@ -60,11 +65,6 @@ $STD /usr/local/bin/uv venv "$VIRTUAL_ENV" $STD /usr/local/bin/uv sync --locked --active msg_ok "Configured MediaManager" -read -r -p "Enter the email address of your first admin user: " admin_email -if [[ "$admin_email" ]]; then - EMAIL="$admin_email" -fi - msg_info "Creating config and start script" LOCAL_IP="$(hostname -I | awk '{print $1}')" SECRET="$(openssl rand -hex 32)" @@ -81,7 +81,7 @@ sed -e "s/localhost:8/$LOCAL_IP:8/g" \ mkdir -p "$MEDIA_DIR"/{images,tv,movies,torrents} -cat </opt/"$MM_DIR"/start.sh +cat <"$MM_DIR"/start.sh #!/usr/bin/env bash export CONFIG_DIR="$CONFIG_DIR"