uci-edit-server/start

7 lines
295 B
Bash
Executable File

#!/bin/bash
[[ ! $1 ]] && echo "no editor set, usage start <editor>" && exit
SDIR=$(cd $(dirname $(readlink -f "$0")) >/dev/null 2>&1 ; pwd -P)
env_file=$SDIR/editors/docker.${1}.env
[[ ! -f $env_file ]] && $($SDIR/make-env-file $1)
docker-compose --env-file $SDIR/editors/docker.${1}.env up -d