Sha256: e6b0f496e9d8ec3912effdb504203774e72bfc4c39adbddcb956986925506c6b

Contents?: true

Size: 365 Bytes

Versions: 33

Compression:

Stored size: 365 Bytes

Contents

#!/bin/bash

set -e

NAME=${1}
USAGE="Usage: sv-enable <service>"
SRC=/etc/sv/${NAME}
DST=/etc/service/${NAME}

if [ "x${1}" = "x" ] ; then
  echo $USAGE
  exit 1
fi

if [ ! -d ${SRC} ] ; then
  echo "Service ${NAME} does not exists"
  exit 1
fi

mkdir -p /etc/service

if [ ! -L $DST ] ; then
  echo " ---> enable ${NAME}"
  rm -rf ${DST}
  ln -s ${SRC} ${DST}
fi

Version data entries

33 entries across 33 versions & 2 rubygems

Version Path
evrone-ci-worker-0.2.0.pre13 docker/sv-enable
evrone-ci-worker-0.2.0.pre12 docker/sv-enable
evrone-ci-worker-0.2.0.pre11 docker/sv-enable
evrone-ci-worker-0.2.0.pre10 docker/sv-enable
evrone-ci-worker-0.2.0.pre9 docker/sv-enable
evrone-ci-worker-0.2.0.pre8 docker/sv-enable
evrone-ci-worker-0.2.0.pre7 docker/sv-enable
evrone-ci-worker-0.2.0.pre6 docker/sv-enable
evrone-ci-worker-0.2.0.pre5 docker/sv-enable
evrone-ci-worker-0.2.0.pre4 docker/sv-enable
evrone-ci-worker-0.2.0.pre3 docker/sv-enable
evrone-ci-worker-0.2.0.pre1 docker/sv-enable
evrone-ci-worker-0.2.0.pre0 docker/sv-enable