summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRoger Gonzalez <roger@rogs.me>2023-01-10 17:39:50 -0300
committerRoger Gonzalez <roger@rogs.me>2023-01-10 17:39:50 -0300
commit01e40119d825f89d6fce252f23f9614a6b8d8d75 (patch)
treef3e4c652aa06ea5507fadf6c90e1c0ec8ca213b8
parentabd9ebeffa4c7ffc4fa9b2b4183b8004a352e18b (diff)
Removed multiple choice on running YAMS
-rwxr-xr-xinstall.sh40
1 files changed, 13 insertions, 27 deletions
diff --git a/install.sh b/install.sh
index 6dc169a..83b397e 100755
--- a/install.sh
+++ b/install.sh
@@ -143,21 +143,11 @@ sed -i -e "s;<install_location>;$install_location;g" yams
send_success_message "Everything installed correctly! 🎉"
-read -p "Do you want to run the script now? [Y/n]: " run_now
-run_now=${run_now:-"y"}
-if [ $run_now == "y" ]; then
- echo "Running the server..."
- echo "This is going to take a while..."
- docker-compose -f $filename up -d
-else
- echo "Perfect! You can run the server later using the following command:"
- echo ""
- echo "========================================================"
- echo "docker-compose -f $filename up -d"
- echo "========================================================"
- echo ""
-fi
+echo "Running the server..."
+echo "This is going to take a while..."
+
+docker-compose -f $filename up -d
# ============================================================================================
# ============================================================================================
@@ -166,8 +156,10 @@ fi
send_success_message "We need your sudo password to install the yams CLI and correct permissions..."
sudo cp yams /usr/local/bin/yams && sudo chmod +x /usr/local/bin/yams
+[[ -f $media_folder ]] || sudo mkdir -p $media_folder || send_error_message "There was an error with your install location!"
sudo chown -R $puid:$pgid $media_folder
-sudo chown -R $puid:$pgid $install_location/config
+[[ -f $install_location/config ]] || sudo mkdir -p $install_location/config
+sudo chown -R $puid:$pgid $install_location
printf "\033c"
@@ -186,18 +178,12 @@ echo " \__\/ \__\/ \__\/ "
echo "========================================================"
send_success_message "All done!✅ Enjoy YAMS!"
echo "You can check the installation on $install_location"
-if [ $run_now == "y" ]; then
- echo "========================================================"
- echo "Everythins should be running now! To check everything running, go to:"
- running_services_location
- echo "You might need to wait for a couple of minutes while everything gets up and running"
- echo "All the services location are also saved in ~/yams_services.txt"
- running_services_location > ~/yams_services.txt
-else
- echo "========================================================"
- echo "Since YAMS is not running yet, to run it just execute:"
- echo "docker-compose -f $filename up -d"
-fi
+echo "========================================================"
+echo "Everythins should be running now! To check everything running, go to:"
+running_services_location
+echo "You might need to wait for a couple of minutes while everything gets up and running"
+echo "All the services location are also saved in ~/yams_services.txt"
+running_services_location > ~/yams_services.txt
echo "========================================================"
exit 0
# ============================================================================================