default turn off interactive mode when attace shell into docker

This commit is contained in:
2022-07-01 18:47:48 +02:00
parent 3ab8c96270
commit ce09d2af05
2 changed files with 8 additions and 5 deletions
+5 -3
View File
@@ -91,11 +91,13 @@ function print_container_info {
############################################################################################################################## ##############################################################################################################################
# Run Code # Run Code
############################################################################################################################## ##############################################################################################################################
find_borg_repo backups/ if [ "$INTERACTIVE_MODE" != "false" ]; then
export BORG_REPO="${repo_list[selected_repo]}" find_borg_repo backups/
if [ ! -z "$BORG_REPO" ]; then export BORG_REPO="${repo_list[selected_repo]}"
if [ ! -z "$BORG_REPO" ]; then
ask_for_repo_password ask_for_repo_password
clear clear
fi
fi fi
print_container_info print_container_info
+1
View File
@@ -4,6 +4,7 @@ ENV USER=borg
ENV UID=1000 ENV UID=1000
ENV GID=1000 ENV GID=1000
ENV MAINTENANCE_ENABLE="false" ENV MAINTENANCE_ENABLE="false"
ENV INTERACTIVE_MODE="false"
ENV TZ="" ENV TZ=""
# Add Folders and Shell Scripts # Add Folders and Shell Scripts