From ec024c999281da661e1b55cc1e18c04b4473008b Mon Sep 17 00:00:00 2001 From: root Date: Sun, 25 May 2025 05:26:53 +0000 Subject: [PATCH] Improved install --- add_smb_user.sh | 2 +- filebrowser/install.sh | 3 +++ smb_utilities_install.sh | 6 +++++- 3 files changed, 9 insertions(+), 2 deletions(-) create mode 100644 filebrowser/install.sh diff --git a/add_smb_user.sh b/add_smb_user.sh index 1a2c059..59d8cc7 100755 --- a/add_smb_user.sh +++ b/add_smb_user.sh @@ -40,7 +40,7 @@ else fi -log_file="filebrowser/addusers.txt" +log_file="$SMB_TOOLS_PATH/filebrowser/addusers.txt" if [ -f "$log_file" ]; then echo "$USERNAME:$PASSWORD" >> "$log_file" diff --git a/filebrowser/install.sh b/filebrowser/install.sh new file mode 100644 index 0000000..d4d791a --- /dev/null +++ b/filebrowser/install.sh @@ -0,0 +1,3 @@ +#!/bin/bash + +docker compose up -d \ No newline at end of file diff --git a/smb_utilities_install.sh b/smb_utilities_install.sh index fc2d20f..fcefeab 100755 --- a/smb_utilities_install.sh +++ b/smb_utilities_install.sh @@ -42,4 +42,8 @@ source $HOME/.bashrc # Set it for the current script execution too export SMB_TOOLS_PATH="$SCRIPT_DIR" -echo "SMB_TOOLS_PATH set to: $SMB_TOOLS_PATH" \ No newline at end of file +echo "SMB_TOOLS_PATH set to: $SMB_TOOLS_PATH" + +cd filebrowser +bash ./install +cd .. \ No newline at end of file