diff --git a/lib/checks.sh b/lib/checks.sh index 00c9ac0..7c3c228 100644 --- a/lib/checks.sh +++ b/lib/checks.sh @@ -95,3 +95,13 @@ check_ports() { done fi } +check_os() { + OSRELEASE=`grep "VERSION=" /etc/os-release | awk -F\" '{ print $2 }'` + if [ "$OSRELEASE" != "22.04 LTS (Jammy Jellyfish)" ]; then + echo -ne "\nFederated requires a minimum of 1G of RAM and 25G of storage\n \ + running Ubuntu 22.04 LTS. Your system is not supported. Please contact\n \ + Federated @ support@federated.computer for assistance or choose our\n \ + cloud offerings at https://cloud.federated.computer.\n\n" + fi +} + diff --git a/lib/connector.sh b/lib/connector.sh index 84a6b48..ba321e7 100644 --- a/lib/connector.sh +++ b/lib/connector.sh @@ -42,9 +42,16 @@ networks: external: true EOF +COOKIE_SECRET=`dd if=/dev/urandom bs=1K count=1 2>/dev/null | md5sum | awk '{ print $1 }'` + cat > /federated/apps/connector/.env < /federated/apps/nextcloud/data/sidemenu.config.json < /federated/apps/nextcloud/data/nextcloud.sh <