Sha256: bd7ef65054ddeabc52eac4c7ec0be157ff275b41463b1b8beb7d608df2a2c199

Contents?: true

Size: 514 Bytes

Versions: 20

Compression:

Stored size: 514 Bytes

Contents

#!/bin/bash


HIERA_BASE="/etc/freighthop/hiera_data"

APP_HIERA_DATA_SOURCE="${1}/.freighthop.json"
APP_HIERA_DATA_TARGET="${HIERA_BASE}/app.json"

VAGRANT_HIERA_DATA_SOURCE="/vagrant/data"
VAGRANT_HIERA_DATA_TARGET="${HIERA_BASE}/vagrant"

if [ ! -d "$HIERA_BASE" ]; then
  mkdir -p $HIERA_BASE
fi

if [ ! -h "$VAGRANT_HIERA_DATA_TARGET" ]; then
  ln -s $VAGRANT_HIERA_DATA_SOURCE $VAGRANT_HIERA_DATA_TARGET
fi

if [ ! -h "$APP_HIERA_DATA_TARGET" ]; then
  ln -s $APP_HIERA_DATA_SOURCE $APP_HIERA_DATA_TARGET
fi

Version data entries

20 entries across 20 versions & 1 rubygems

Version Path
freighthop-0.6.1 init/symlinks_for_hiera.sh
freighthop-0.6.0 init/symlinks_for_hiera.sh
freighthop-0.5.2 init/symlinks_for_hiera.sh
freighthop-0.5.1 init/symlinks_for_hiera.sh
freighthop-0.5.0 init/symlinks_for_hiera.sh
freighthop-0.4.1 init/symlinks_for_hiera.sh
freighthop-0.4.0 init/symlinks_for_hiera.sh
freighthop-0.3.3 init/symlinks_for_hiera.sh
freighthop-0.3.2 init/symlinks_for_hiera.sh
freighthop-0.3.1 init/symlinks_for_hiera.sh
freighthop-0.3.0 init/symlinks_for_hiera.sh
freighthop-0.2.1 init/symlinks_for_hiera.sh
freighthop-0.2.0 init/symlinks_for_hiera.sh
freighthop-0.1.0 init/symlinks_for_hiera.sh
freighthop-0.0.6 init/symlinks_for_hiera.sh
freighthop-0.0.5 init/symlinks_for_hiera.sh
freighthop-0.0.4 init/symlinks_for_hiera.sh
freighthop-0.0.3 init/symlinks_for_hiera.sh
freighthop-0.0.2 init/symlinks_for_hiera.sh
freighthop-0.0.1 init/symlinks_for_hiera.sh