Merge branch 'feature/KASM-4729-profile-sync-changes' into 'develop'

KASM-4729 remove push logic from vnc startup and pull the bigfiles flag from the shutdown hook

Closes KASM-4729

See merge request kasm-technologies/internal/workspaces-core-images!132
This commit is contained in:
Justin Travis 2023-07-28 18:09:32 +00:00
commit b081bc89a3
2 changed files with 1 additions and 14 deletions

View File

@ -62,7 +62,7 @@ if [ ! -z "$KASM_PROFILE_LDR" ]; then
echo >&2 "Profile sync not available"
else
echo "Packing and uploading user profile to object storage."
http_proxy="" https_proxy="" /usr/bin/kasm-profile-sync --upload /home/kasm-user --insecure --filter "${KASM_PROFILE_FILTER}" --remote ${KASM_API_HOST} --port ${KASM_API_PORT} -c ${KASM_PROFILE_CHUNK_SIZE} --token ${KASM_API_JWT} --bigfiles skip
http_proxy="" https_proxy="" /usr/bin/kasm-profile-sync --upload /home/kasm-user --insecure --filter "${KASM_PROFILE_FILTER}" --remote ${KASM_API_HOST} --port ${KASM_API_PORT} -c ${KASM_PROFILE_CHUNK_SIZE} --token ${KASM_API_JWT}
echo "Profile upload complete."
fi
fi

View File

@ -85,19 +85,6 @@ function pull_profile (){
fi
}
function push_profile(){
if [ ! -z "$KASM_PROFILE_LDR" ]; then
if [ -z "$kasm_profile_sync_found" ]; then
echo >&2 "Profile sync not available"
return
fi
echo "Packing and uploading user profile to object storage."
/usr/bin/kasm-profile-sync --upload /home/kasm-user --insecure --remote ${KASM_API_HOST} --port ${KASM_API_PORT} -c ${KASM_PROFILE_CHUNK_SIZE} --token ${KASM_API_JWT}
echo "Profile upload complete."
fi
}
function profile_size_check(){
if [ ! -z "$KASM_PROFILE_SIZE_LIMIT" ]
then