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

Utilisation d'une install existante

parent 5c00d023
No related branches found
No related tags found
No related merge requests found
client client
vas vas
conf/closure conf/closure
conf/properties.json
src/vitis/vas/log/
src/vitis/vas/public/
src/vitis/vas/server/
src/vitis/vas/ws_data/
src/vitis/vas/tmp/
src/vitis/vas/rest/.htaccess
src/vitis/client/conf src/vitis/client/conf
src/vitis/client/modules/vmap src/vitis/client/modules/vmap
src/vitis/vas/rest/ws/vmap src/vitis/vas/rest/ws/vmap
......
...@@ -83,20 +83,32 @@ if [[ $depsCount > 0 ]]; then ...@@ -83,20 +83,32 @@ if [[ $depsCount > 0 ]]; then
if [ -d "${APP_EXISTING_PATH}" ]; then if [ -d "${APP_EXISTING_PATH}" ]; then
echo "---- Link exixting app ${APP_EXISTING_PATH} ----" echo "---- Link exixting app ${APP_EXISTING_PATH} ----"
existing_folders_path[0]="vas/server" declare -a existing_folders_path=("vas/server"
existing_folders_path[1]="vas/log" "vas/log"
existing_folders_path[2]="vas/public" "vas/public"
existing_folders_path[3]="vas/shared" "vas/shared"
existing_folders_path[4]="vas/tmp" "vas/tmp"
existing_folders_path[5]="vas/upload" "vas/upload"
existing_folders_path[6]="vas/ws_data" "vas/ws_data")
for folder_path in "${existing_folders_path[@]}"; do
if [ -d "${APP_EXISTING_PATH}/$folder_path" ]; then
echo "copy $folder_path"
cp -Rf "${APP_EXISTING_PATH}/$folder_path" "$(pwd)/$folder_path"
fi
done
file_path="client/conf/properties.json"
if [ -f "${APP_EXISTING_PATH}/$file_path" ]; then
echo "copy $file_path"
cp -f "${APP_EXISTING_PATH}/$file_path" "$(pwd)/$file_path"
fi
existing_folders_path[8]="vas/rest/conf" file_path="vas/rest/.htaccess"
file_existing_path[0]="client/conf/properties.json" if [ -f "${APP_EXISTING_PATH}/$file_path" ]; then
file_existing_path[1]="vas/rest/.htaccess" echo "copy $file_path"
cp -f "${APP_EXISTING_PATH}/$file_path" "$(pwd)/$file_path"
fi
# file_existing_path[2]="vas/rest/conf"
# for i in "${arrayName[@]}" do
#
# done
fi fi
fi fi
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment