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