Puged "entertainment" from the script

This commit is contained in:
Roger Gonzalez 2023-01-07 14:05:59 -03:00
parent eac038b9ed
commit ec67f9b772
Signed by: rogs
GPG Key ID: C7ECE9C6C36EC2E6

View File

@ -66,7 +66,7 @@ check_dependencides "docker-compose"
# ============================================================================================ # ============================================================================================
# Gathering information # Gathering information
# ============================================================================================ # ============================================================================================
read -p "Where do you want to instal the docker-compose file? [/opt/yams] : " install_location read -p "Where do you want to install the docker-compose file? [/opt/yams]: " install_location
# Checking if the install_location exists # Checking if the install_location exists
install_location=${install_location:-/opt/yams} install_location=${install_location:-/opt/yams}
@ -74,7 +74,7 @@ install_location=${install_location:-/opt/yams}
install_location=$(realpath $install_location) install_location=$(realpath $install_location)
filename="$install_location/docker-compose.yaml" filename="$install_location/docker-compose.yaml"
read -p "What's the user that is going to own the media server files? [$USER] : " username read -p "What's the user that is going to own the media server files? [$USER]: " username
# Checking that the user exists # Checking that the user exists
username=${username:-$USER} username=${username:-$USER}
@ -88,7 +88,7 @@ fi
read -p "Please, input your media folder: " media_folder read -p "Please, input your media folder: " media_folder
# Checking that the entertainment folder exists # Checking that the media folder exists
realpath $media_folder &>/dev/null || send_error_message "There was an error with your media folder! The directory \"$media_folder\" does not exist!" realpath $media_folder &>/dev/null || send_error_message "There was an error with your media folder! The directory \"$media_folder\" does not exist!"
@ -98,7 +98,7 @@ read -p "Are you sure your media folder is $media_folder? [y/N]: " media_folder_
media_folder_correct=${media_folder_correct:-"n"} media_folder_correct=${media_folder_correct:-"n"}
if [ $media_folder_correct == "n" ]; then if [ $media_folder_correct == "n" ]; then
send_error_message "Entertainment folder is not correct. Please, fix it and run the script again" send_error_message "Media folder is not correct. Please, fix it and run the script again"
fi fi
echo "Configuring the docker-compose file for the user \"$username\" on \"$install_location\"..." echo "Configuring the docker-compose file for the user \"$username\" on \"$install_location\"..."