socialtree/dev/shell/entrypoint.sh

9 lines
237 B
Bash

#!/bin/sh
if [[ ! -d "/app/assets/config" ]] && [[ ! -d "/app/assets/img" ]]; then
echo "No config found, installing default files"
mkdir /app/assets
cp -R /assets/* /app/assets
fi
echo "Starting node application"
yarn start