#!/bin/bash

echo
echo "******************************"
echo "*** Setting up environment ***"
echo "******************************"
# Create ssh deamon folder
mkdir /var/run/sshd

# Setup /etc/environment
printf '%s\n' \
    'PATH="usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/local/lib/orfeo/bin"' \
    'JAVA_HOME="/usr/lib/jvm/java-8-oracle"' \
    'GDAL_DATA="/usr/share/gdal/2.1"' \
    >> /etc/environment

# Remove redundant files
rm -rf /var/lib/apt/lists/*
rm -rf /tmp/*

echo
echo "*************************"
echo "*** Image Initialized ***"
echo "*************************"

#!/bin/bash

echo
echo "******************************"
echo "*** Setting up environment ***"
echo "******************************"
# Create ssh deamon folder
mkdir /var/run/sshd

# Setup /etc/environment
printf '%s\n' \
    'PATH="usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/local/lib/orfeo/bin"' \
    'JAVA_HOME="/usr/lib/jvm/java-8-oracle"' \
    'GDAL_DATA="/usr/share/gdal/2.1"' \
    'SEPAL="true"' \
    >> /etc/environment

# Remove redundant files
rm -rf /var/lib/apt/lists/*
rm -rf /tmp/*

echo
echo "*************************"
echo "*** Image Initialized ***"
echo "*************************"

Set environmental variable SEPAL to true in sandbox.
Set environmental variable SEPAL to true in sandbox.

This indicates to applications and scripts that they are run within Sepal.
