Check if --data-dir exists

This commit is contained in:
Girish Ramakrishnan
2017-04-07 11:37:30 -07:00
parent b422a27be8
commit 299e8aceeb
2 changed files with 6 additions and 1 deletions

View File

@@ -60,7 +60,7 @@ if [[ "${is_update}" == "yes" ]]; then
fi
# setup links to data directory
if [[ "${arg_data_dir}" != "" ]]; then
if [[ -n "${arg_data_dir}" ]]; then
echo "==> installer: setting up links to data directory"
mkdir "${arg_data_dir}/appsdata"
ln -s "${arg_data_dir}/appsdata" "${BASE_DATA_DIR}/appsdata"