Revert "Added -r to all read commands"
This reverts commit 4de0264c3047454cb917fd5cd3f012ab35a3f112.
This commit is contained in:
parent
4de0264c30
commit
8af613a7dd
10
install.sh
10
install.sh
@ -39,7 +39,7 @@ check_dependencides() {
|
|||||||
send_success_message "$1 exists ✅ "
|
send_success_message "$1 exists ✅ "
|
||||||
else
|
else
|
||||||
echo -e $(printf "\e[31m ⚠️ $1 not found! ⚠️\e[0m")
|
echo -e $(printf "\e[31m ⚠️ $1 not found! ⚠️\e[0m")
|
||||||
read -pr "Do you want YAMS to install docker and docker-compose? IT ONLY WORKS ON DEBIAN AND UBUNTU! [y/N]: " install_docker
|
read -p "Do you want YAMS to install docker and docker-compose? IT ONLY WORKS ON DEBIAN AND UBUNTU! [y/N]: " install_docker
|
||||||
install_docker=${install_docker:-"n"}
|
install_docker=${install_docker:-"n"}
|
||||||
|
|
||||||
if [ $install_docker == "y" ]; then
|
if [ $install_docker == "y" ]; then
|
||||||
@ -74,7 +74,7 @@ check_dependencides "docker-compose"
|
|||||||
# ============================================================================================
|
# ============================================================================================
|
||||||
# Gathering information
|
# Gathering information
|
||||||
# ============================================================================================
|
# ============================================================================================
|
||||||
read -pr "Where do you want to install 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}
|
||||||
@ -82,7 +82,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 -pr "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}
|
||||||
@ -94,7 +94,7 @@ else
|
|||||||
send_error_message "The user \"$username\" doesn't exist!"
|
send_error_message "The user \"$username\" doesn't exist!"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
read -pr "Please, input your media folder: " media_folder
|
read -p "Please, input your media folder: " media_folder
|
||||||
|
|
||||||
# Checking that the media folder exists
|
# Checking that the media folder exists
|
||||||
|
|
||||||
@ -102,7 +102,7 @@ realpath $media_folder &>/dev/null || send_error_message "There was an error wit
|
|||||||
|
|
||||||
media_folder=$(realpath $media_folder)
|
media_folder=$(realpath $media_folder)
|
||||||
|
|
||||||
read -pr "Are you sure your media folder is $media_folder? [y/N]: " media_folder_correct
|
read -p "Are you sure your media folder is $media_folder? [y/N]: " media_folder_correct
|
||||||
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
|
||||||
|
Loading…
x
Reference in New Issue
Block a user