diff options
author | Roger Gonzalez <roger@rogs.me> | 2023-01-07 11:29:35 -0300 |
---|---|---|
committer | Roger Gonzalez <roger@rogs.me> | 2023-01-07 11:29:35 -0300 |
commit | 9faf816060931f8622d2cac2a88a8fb35111b11b (patch) | |
tree | b981d8616952efabf31c820a5aa77068b5628ad8 /setup.sh | |
parent | 59b0a56b3229754ffe273bb1bd5bcdaae614e7cb (diff) |
Fixed issues with the first run in Debian
Diffstat (limited to 'setup.sh')
-rwxr-xr-x | setup.sh | 15 |
1 files changed, 9 insertions, 6 deletions
@@ -38,7 +38,7 @@ check_dependencides() { if command -v $1 &> /dev/null; then send_success_message "$1 exists ✅ " else - send_error_message "⚠️ You need to have \"$1\" installed and in your PATH! EXITING ⚠️" + send_error_message "⚠️ You need to have \"$1\" installed and in your PATH! EXITING ⚠️" fi } @@ -105,13 +105,13 @@ echo "Copying $filename..." cp docker-compose.example.yaml $filename || send_error_message "You need to have permissions on the folder! (Maybe you forgot to run with sudo?)" # Set PUID -sed -i '' -e "s/<your_PUID>/$puid/g" $filename +sed -i -e "s/<your_PUID>/$puid/g" $filename # Set PGID -sed -i '' -e "s/<your_PGID>/$pgid/g" $filename +sed -i -e "s/<your_PGID>/$pgid/g" $filename # Set entertainment_folder -sed -i '' -e "s;<entertainment_folder>;$entertainment_folder;g" $filename +sed -i -e "s;<entertainment_folder>;$entertainment_folder;g" $filename send_success_message "Everything installed correctly! 🎉" read -p "Do you want to run the script now? [Y/n]: " run_now @@ -136,8 +136,6 @@ fi # ============================================================================================ printf "\033c" -mv /tmp/yams/setup.sh $install_location &>/dev/null || true -mv /tmp/yams/docker-compose.example.yaml $install_location &>/dev/null || true echo "========================================================" echo " _____ ___ ___ ___ " @@ -154,6 +152,11 @@ 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 "Since YAMS is not running yet, to run it just execute:" + echo "docker-compose -f $filename up -d" +fi echo "========================================================" exit 0 # ============================================================================================ |