|
|
@ -156,7 +156,7 @@ install_docker_compose() { |
|
|
|
install_umbrel() { |
|
|
|
version=$(get_umbrel_version) |
|
|
|
curl --location "https://api.github.com/repos/${UMBREL_REPO}/tarball/${version}" | \ |
|
|
|
tar --extract --gzip --strip-components=1 --directory="${INSTALL_PATH}" |
|
|
|
tar --extract --gzip --strip-components=1 --directory="${UMBREL_INSTALL_PATH}" |
|
|
|
} |
|
|
|
|
|
|
|
main() { |
|
|
@ -174,10 +174,10 @@ main() { |
|
|
|
|
|
|
|
if [[ "${INSTALL_UMBREL}" = "true" ]] |
|
|
|
then |
|
|
|
mkdir -p "${INSTALL_PATH}" |
|
|
|
if [[ "$(ls --almost-all "${INSTALL_PATH}")" ]] |
|
|
|
mkdir -p "${UMBREL_INSTALL_PATH}" |
|
|
|
if [[ "$(ls --almost-all "${UMBREL_INSTALL_PATH}")" ]] |
|
|
|
then |
|
|
|
echo "Error: Umbrel install path \"${INSTALL_PATH}\" already contains files" |
|
|
|
echo "Error: Umbrel install path \"${UMBREL_INSTALL_PATH}\" already contains files" |
|
|
|
exit 1 |
|
|
|
fi |
|
|
|
fi |
|
|
|