#!/bin/bash
# Copyright (c) 2018, Oracle and/or its affiliates. All rights reserved.
#
# Mark installation as 'secure'
#
set -o errexit -o nounset -o pipefail

# Get the install directory parameter from the CLI arguments
if [ $# -ne 1 -o ! -d "$1" ]
then
    echo "Install directory not found." 1>&2
    echo "usage: $0 <install-dir>" 1>&2
    exit 1
fi

INSTDIR="$1"

# Mark webservers as secure
touch "${INSTDIR}/webserver/.TWS_secure"
