#!/bin/sh os=$(cat "$__global/explorer/os") if [ ! "$os" = "debian" ] then echo "OS $os is currently not supported." >&2 exit 1 fi os_version=$(cat "$__global/explorer/os_version") case "$os_version" in 8*) : ;; 9*) : ;; *) echo "Unsupported version $os_version of $os." >&2 exit 1 ;; esac nextcloud_version=$(cat "$__object/parameter/version") if [ ! "${nextcloud_version}" ] then echo "Missing nextcloud version (parameter/version)" >&2 exit 1 fi # TODO check if url parameter is set nextcloud_uri="https://download.nextcloud.com/server/releases/nextcloud-${nextcloud_version}.tar.bz2" # TODO check shasum of tar ball cat <