Skip to content
Snippets Groups Projects
Commit 53a26943 authored by Armand Bahi's avatar Armand Bahi
Browse files

Update utils/init_symlinks.sh

parent cdd6388c
Branches
No related tags found
No related merge requests found
......@@ -97,18 +97,32 @@ if [[ $depsCount > 0 ]]; then
fi
done
file_path="client/conf/properties.json"
declare -a existing_files_path=("client/conf/properties.json"
"vas/rest/conf/properties.inc"
"vas/rest/conf/properties_domain.inc"
"vas/rest/conf/properties_post.inc"
"vas/rest/conf/properties_server.inc"
"vas/rest/conf/version.inc"
"vas/rest/.htaccess")
for file_path in "${existing_files_path[@]}"; do
if [ -f "${APP_EXISTING_PATH}/$file_path" ]; then
echo "copy $file_path"
cp -f "${APP_EXISTING_PATH}/$file_path" "$(pwd)/$file_path"
fi
done
file_path="vas/rest/.htaccess"
if [ -f "${APP_EXISTING_PATH}/$file_path" ]; then
echo "copy $file_path"
cp -f "${APP_EXISTING_PATH}/$file_path" "$(pwd)/$file_path"
for properties_dir in $( ls "${APP_EXISTING_PATH}/vas/rest/conf"); do
if [ -d "${APP_EXISTING_PATH}/vas/rest/conf/${properties_dir}" ]; then
if [ -d "$(pwd)/vas/rest/conf/${properties_dir}" ]; then
for properties_file in $( ls "${APP_EXISTING_PATH}/vas/rest/conf/${properties_dir}"); do
# if [ ${properties_file:0:10}=="properties" || ${properties_file}=="version.inc" ]; then
if [[ $properties_file == "properties"* ]] || [[ $properties_file == "version.inc" ]]; then
echo "copy vas/rest/conf/${properties_dir}/${properties_file}"
cp -f "${APP_EXISTING_PATH}/vas/rest/conf/${properties_dir}/${properties_file}" "$(pwd)/vas/rest/conf/${properties_dir}/${properties_file}"
fi
# file_existing_path[2]="vas/rest/conf"
done
fi
fi
done
fi
fi
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment