This commit is contained in:
lrgex
2023-11-15 14:35:10 +03:00
parent 73ad6d8e46
commit de388e7ae3
8 changed files with 100 additions and 18 deletions

View File

@@ -49,7 +49,7 @@ for package in "${packages_array[@]}"; do
if [ "${package}" = "fluidd" ] && [ ! -d "/home/lrgex/fluidd" ] && [ ! -d "/home/lrgex/mainsail" ]; then
echo "Installing Fluidd with Kiauh..."
su lrgex -c 'expect ./fluidd.exp'
elif [ -d "/home/lrgex/mainsail" ]; then
elif [ -d "/home/lrgex/mainsail" ] && [ "${package}" = "fluidd" ]; then
echo -e "\e[31mMainsail detected, skipping Fluidd installation.\e[0m"
echo -e "\e[31mIf you want to install Fluidd, please re run the container without the Mainsail package. .e.g [-e PACKAGES=\"klipper moonraker fluidd\"]\e[0m"
sleep 5
@@ -58,7 +58,7 @@ for package in "${packages_array[@]}"; do
if [ "${package}" = "mainsail" ] && [ ! -d "/home/lrgex/mainsail" ] && [ ! -d "/home/lrgex/fluidd" ]; then
echo "Installing Mainsail with Kiauh..."
su lrgex -c 'expect ./mainsail.exp'
elif [ -d "/home/lrgex/fluidd" ]; then
elif [ -d "/home/lrgex/fluidd" ] && [ "${package}" = "mainsail" ]; then
echo -e "\e[31mFluidd detected, skipping Mainsail installation.\e[0m"
echo -e "\e[31mIf you want to install Mainsail, please re run the container without the Fluidd package. .e.g [-e PACKAGES=\"klipper moonraker mainsail\"]\e[0m"
sleep 5