#!/bin/bash command -v git >/dev/null 2>&1 || { echo >&2 "Require git but it's not installed. Aborting."; kill -INT $$; } if [[ $EUID -ne 0 ]]; then echo "This script can only be run or configured by root." kill -INT $$ fi mkdir -p /opt cd /opt # if [ -d "logicmoo_workspace" ]; then git clone --recursive https://github.com/TeamSPoon/logicmoo_workspace # fi cd logicmoo_workspace git pull git fetch --recurse-submodules git submodule init # git submodule update git submodule sync --recursive (source ./INSTALL.md)