feat: add OctoApp support #454
@@ -159,20 +159,6 @@ function octoapp_setup_dialog() {
|
||||
|
|
||||
fi # (( allowed_octoapp_count > 0 ))
|
||||
}
|
||||
|
||||
function clone_octoapp() {
|
||||
```suggestion
blank_line
echo -e "| The setup will apply the same names to OctoApp |"
blank_line
echo -e "| Please select the number of OctoApp instances to |"
echo -e "| install. Usually one OctoApp instance per Moonraker |"
echo -e "| instance is required, but you may not install more |"
echo -e "| OctoApp instances than available Moonraker instances. |"
bottom_border
```
This function is declared twice in this file. This is coming form the OctoEverywhere script, where this function is also declared twice. We can simply remove that one here. This function is declared twice in this file. This is coming form the OctoEverywhere script, where this function is also declared twice. We can simply remove that one here.
Removed. I ping Quinn about the duplicate function in OE, but as both are identical there is not much harm done Removed. I ping Quinn about the duplicate function in OE, but as both are identical there is not much harm done
|
||||
local repo=${1}
|
||||
```suggestion
blank_line
echo -e "| The setup will apply the same names to OctoApp |"
blank_line
echo -e "| Please select the number of OctoApp instances to |"
echo -e "| install. Usually one OctoApp instance per Moonraker |"
echo -e "| instance is required, but you may not install more |"
echo -e "| OctoApp instances than available Moonraker instances. |"
bottom_border
```
This function is declared twice in this file. This is coming form the OctoEverywhere script, where this function is also declared twice. We can simply remove that one here. This function is declared twice in this file. This is coming form the OctoEverywhere script, where this function is also declared twice. We can simply remove that one here.
Removed. I ping Quinn about the duplicate function in OE, but as both are identical there is not much harm done Removed. I ping Quinn about the duplicate function in OE, but as both are identical there is not much harm done
|
||||
|
||||
```suggestion
blank_line
echo -e "| The setup will apply the same names to OctoApp |"
blank_line
echo -e "| Please select the number of OctoApp instances to |"
echo -e "| install. Usually one OctoApp instance per Moonraker |"
echo -e "| instance is required, but you may not install more |"
echo -e "| OctoApp instances than available Moonraker instances. |"
bottom_border
```
This function is declared twice in this file. This is coming form the OctoEverywhere script, where this function is also declared twice. We can simply remove that one here. This function is declared twice in this file. This is coming form the OctoEverywhere script, where this function is also declared twice. We can simply remove that one here.
Removed. I ping Quinn about the duplicate function in OE, but as both are identical there is not much harm done Removed. I ping Quinn about the duplicate function in OE, but as both are identical there is not much harm done
|
||||
status_msg "Cloning OctoApp..."
|
||||
```suggestion
blank_line
echo -e "| The setup will apply the same names to OctoApp |"
blank_line
echo -e "| Please select the number of OctoApp instances to |"
echo -e "| install. Usually one OctoApp instance per Moonraker |"
echo -e "| instance is required, but you may not install more |"
echo -e "| OctoApp instances than available Moonraker instances. |"
bottom_border
```
This function is declared twice in this file. This is coming form the OctoEverywhere script, where this function is also declared twice. We can simply remove that one here. This function is declared twice in this file. This is coming form the OctoEverywhere script, where this function is also declared twice. We can simply remove that one here.
Removed. I ping Quinn about the duplicate function in OE, but as both are identical there is not much harm done Removed. I ping Quinn about the duplicate function in OE, but as both are identical there is not much harm done
|
||||
### force remove existing repos
|
||||
```suggestion
blank_line
echo -e "| The setup will apply the same names to OctoApp |"
blank_line
echo -e "| Please select the number of OctoApp instances to |"
echo -e "| install. Usually one OctoApp instance per Moonraker |"
echo -e "| instance is required, but you may not install more |"
echo -e "| OctoApp instances than available Moonraker instances. |"
bottom_border
```
This function is declared twice in this file. This is coming form the OctoEverywhere script, where this function is also declared twice. We can simply remove that one here. This function is declared twice in this file. This is coming form the OctoEverywhere script, where this function is also declared twice. We can simply remove that one here.
Removed. I ping Quinn about the duplicate function in OE, but as both are identical there is not much harm done Removed. I ping Quinn about the duplicate function in OE, but as both are identical there is not much harm done
|
||||
[[ -d "${OCTOAPP_DIR}" ]] && rm -rf "${OCTOAPP_DIR}"
|
||||
```suggestion
blank_line
echo -e "| The setup will apply the same names to OctoApp |"
blank_line
echo -e "| Please select the number of OctoApp instances to |"
echo -e "| install. Usually one OctoApp instance per Moonraker |"
echo -e "| instance is required, but you may not install more |"
echo -e "| OctoApp instances than available Moonraker instances. |"
bottom_border
```
This function is declared twice in this file. This is coming form the OctoEverywhere script, where this function is also declared twice. We can simply remove that one here. This function is declared twice in this file. This is coming form the OctoEverywhere script, where this function is also declared twice. We can simply remove that one here.
Removed. I ping Quinn about the duplicate function in OE, but as both are identical there is not much harm done Removed. I ping Quinn about the duplicate function in OE, but as both are identical there is not much harm done
|
||||
|
||||
```suggestion
blank_line
echo -e "| The setup will apply the same names to OctoApp |"
blank_line
echo -e "| Please select the number of OctoApp instances to |"
echo -e "| install. Usually one OctoApp instance per Moonraker |"
echo -e "| instance is required, but you may not install more |"
echo -e "| OctoApp instances than available Moonraker instances. |"
bottom_border
```
This function is declared twice in this file. This is coming form the OctoEverywhere script, where this function is also declared twice. We can simply remove that one here. This function is declared twice in this file. This is coming form the OctoEverywhere script, where this function is also declared twice. We can simply remove that one here.
Removed. I ping Quinn about the duplicate function in OE, but as both are identical there is not much harm done Removed. I ping Quinn about the duplicate function in OE, but as both are identical there is not much harm done
|
||||
cd "${HOME}" || exit 1
|
||||
```suggestion
blank_line
echo -e "| The setup will apply the same names to OctoApp |"
blank_line
echo -e "| Please select the number of OctoApp instances to |"
echo -e "| install. Usually one OctoApp instance per Moonraker |"
echo -e "| instance is required, but you may not install more |"
echo -e "| OctoApp instances than available Moonraker instances. |"
bottom_border
```
This function is declared twice in this file. This is coming form the OctoEverywhere script, where this function is also declared twice. We can simply remove that one here. This function is declared twice in this file. This is coming form the OctoEverywhere script, where this function is also declared twice. We can simply remove that one here.
Removed. I ping Quinn about the duplicate function in OE, but as both are identical there is not much harm done Removed. I ping Quinn about the duplicate function in OE, but as both are identical there is not much harm done
|
||||
if ! git clone "${repo}" "${OCTOAPP_DIR}"; then
|
||||
```suggestion
blank_line
echo -e "| The setup will apply the same names to OctoApp |"
blank_line
echo -e "| Please select the number of OctoApp instances to |"
echo -e "| install. Usually one OctoApp instance per Moonraker |"
echo -e "| instance is required, but you may not install more |"
echo -e "| OctoApp instances than available Moonraker instances. |"
bottom_border
```
This function is declared twice in this file. This is coming form the OctoEverywhere script, where this function is also declared twice. We can simply remove that one here. This function is declared twice in this file. This is coming form the OctoEverywhere script, where this function is also declared twice. We can simply remove that one here.
Removed. I ping Quinn about the duplicate function in OE, but as both are identical there is not much harm done Removed. I ping Quinn about the duplicate function in OE, but as both are identical there is not much harm done
|
||||
print_error "Cloning OctoApp from\n ${repo}\n failed!"
|
||||
```suggestion
blank_line
echo -e "| The setup will apply the same names to OctoApp |"
blank_line
echo -e "| Please select the number of OctoApp instances to |"
echo -e "| install. Usually one OctoApp instance per Moonraker |"
echo -e "| instance is required, but you may not install more |"
echo -e "| OctoApp instances than available Moonraker instances. |"
bottom_border
```
This function is declared twice in this file. This is coming form the OctoEverywhere script, where this function is also declared twice. We can simply remove that one here. This function is declared twice in this file. This is coming form the OctoEverywhere script, where this function is also declared twice. We can simply remove that one here.
Removed. I ping Quinn about the duplicate function in OE, but as both are identical there is not much harm done Removed. I ping Quinn about the duplicate function in OE, but as both are identical there is not much harm done
|
||||
exit 1
|
||||
```suggestion
blank_line
echo -e "| The setup will apply the same names to OctoApp |"
blank_line
echo -e "| Please select the number of OctoApp instances to |"
echo -e "| install. Usually one OctoApp instance per Moonraker |"
echo -e "| instance is required, but you may not install more |"
echo -e "| OctoApp instances than available Moonraker instances. |"
bottom_border
```
This function is declared twice in this file. This is coming form the OctoEverywhere script, where this function is also declared twice. We can simply remove that one here. This function is declared twice in this file. This is coming form the OctoEverywhere script, where this function is also declared twice. We can simply remove that one here.
Removed. I ping Quinn about the duplicate function in OE, but as both are identical there is not much harm done Removed. I ping Quinn about the duplicate function in OE, but as both are identical there is not much harm done
|
||||
fi
|
||||
```suggestion
blank_line
echo -e "| The setup will apply the same names to OctoApp |"
blank_line
echo -e "| Please select the number of OctoApp instances to |"
echo -e "| install. Usually one OctoApp instance per Moonraker |"
echo -e "| instance is required, but you may not install more |"
echo -e "| OctoApp instances than available Moonraker instances. |"
bottom_border
```
This function is declared twice in this file. This is coming form the OctoEverywhere script, where this function is also declared twice. We can simply remove that one here. This function is declared twice in this file. This is coming form the OctoEverywhere script, where this function is also declared twice. We can simply remove that one here.
Removed. I ping Quinn about the duplicate function in OE, but as both are identical there is not much harm done Removed. I ping Quinn about the duplicate function in OE, but as both are identical there is not much harm done
|
||||
}
|
||||
```suggestion
blank_line
echo -e "| The setup will apply the same names to OctoApp |"
blank_line
echo -e "| Please select the number of OctoApp instances to |"
echo -e "| install. Usually one OctoApp instance per Moonraker |"
echo -e "| instance is required, but you may not install more |"
echo -e "| OctoApp instances than available Moonraker instances. |"
bottom_border
```
This function is declared twice in this file. This is coming form the OctoEverywhere script, where this function is also declared twice. We can simply remove that one here. This function is declared twice in this file. This is coming form the OctoEverywhere script, where this function is also declared twice. We can simply remove that one here.
Removed. I ping Quinn about the duplicate function in OE, but as both are identical there is not much harm done Removed. I ping Quinn about the duplicate function in OE, but as both are identical there is not much harm done
|
||||
|
||||
```suggestion
blank_line
echo -e "| The setup will apply the same names to OctoApp |"
blank_line
echo -e "| Please select the number of OctoApp instances to |"
echo -e "| install. Usually one OctoApp instance per Moonraker |"
echo -e "| instance is required, but you may not install more |"
echo -e "| OctoApp instances than available Moonraker instances. |"
bottom_border
```
This function is declared twice in this file. This is coming form the OctoEverywhere script, where this function is also declared twice. We can simply remove that one here. This function is declared twice in this file. This is coming form the OctoEverywhere script, where this function is also declared twice. We can simply remove that one here.
Removed. I ping Quinn about the duplicate function in OE, but as both are identical there is not much harm done Removed. I ping Quinn about the duplicate function in OE, but as both are identical there is not much harm done
|
||||
function octoapp_install() {
|
||||
"${OCTOAPP_DIR}/install.sh" "$@"
|
||||
}
|
||||
|
||||
```suggestion
blank_line
echo -e "| The setup will apply the same names to OctoApp |"
blank_line
echo -e "| Please select the number of OctoApp instances to |"
echo -e "| install. Usually one OctoApp instance per Moonraker |"
echo -e "| instance is required, but you may not install more |"
echo -e "| OctoApp instances than available Moonraker instances. |"
bottom_border
```
```suggestion
blank_line
echo -e "| The setup will apply the same names to OctoApp |"
blank_line
echo -e "| Please select the number of OctoApp instances to |"
echo -e "| install. Usually one OctoApp instance per Moonraker |"
echo -e "| instance is required, but you may not install more |"
echo -e "| OctoApp instances than available Moonraker instances. |"
bottom_border
```
This function is declared twice in this file. This is coming form the OctoEverywhere script, where this function is also declared twice. We can simply remove that one here. This function is declared twice in this file. This is coming form the OctoEverywhere script, where this function is also declared twice. We can simply remove that one here.
This function is declared twice in this file. This is coming form the OctoEverywhere script, where this function is also declared twice. We can simply remove that one here. This function is declared twice in this file. This is coming form the OctoEverywhere script, where this function is also declared twice. We can simply remove that one here.
Removed. I ping Quinn about the duplicate function in OE, but as both are identical there is not much harm done Removed. I ping Quinn about the duplicate function in OE, but as both are identical there is not much harm done
Removed. I ping Quinn about the duplicate function in OE, but as both are identical there is not much harm done Removed. I ping Quinn about the duplicate function in OE, but as both are identical there is not much harm done
|
||||
This function is declared twice in this file. This is coming form the OctoEverywhere script, where this function is also declared twice. We can simply remove that one here.
This function is declared twice in this file. This is coming form the OctoEverywhere script, where this function is also declared twice. We can simply remove that one here.
Removed. I ping Quinn about the duplicate function in OE, but as both are identical there is not much harm done
Removed. I ping Quinn about the duplicate function in OE, but as both are identical there is not much harm done