refactor: move moveDataDir into services

This commit is contained in:
Girish Ramakrishnan
2025-06-14 21:14:59 +02:00
parent 73a56830b0
commit 39cbfb84ae
3 changed files with 26 additions and 27 deletions

View File

@@ -26,6 +26,8 @@ if [[ "${BOX_ENV}" == "test" ]]; then
[[ "${target_dir}" != *"/.cloudron_test/"* ]] && exit 1
fi
mkdir -p "${target_dir}"
source_stat=$(stat --format='%d,%i' "${source_dir}")
target_stat=$(stat --format='%d,%i' "${target_dir}")