b5912: Only copy ownership.

Permissions are dictated by the mounted version. Or if it doesn't yet exist, then the permissions are the default of created by root.
This commit is contained in:
Thomas Stokes committed 2024-05-06 23:38:08 +02:00
1 parent 0ccf7d3ad3
commit cd2e0e1ed2
1 file changed
+1 -1
@@ -19,7 +19,7 @@ TEMPORARY_HOME_COPY_LOCATION="/root/temporary_home_copy" # home nested within th
ssh -A "root@${IP}" "bash -s" << EOF
sudo systemctl start crond.service
. imageupgrade_functions.sh
cp -r --preserve "$TEMPORARY_HOME_COPY_LOCATION"/home /
cp -r --preserve=ownership "$TEMPORARY_HOME_COPY_LOCATION"/home /
rm -rf "$TEMPORARY_HOME_COPY_LOCATION"
build_crontab_and_setup_files -f "${IMAGE_TYPE}" "${GIT_COPY_USER}" "${RELATIVE_PATH_TO_GIT}" # files have already been copied so -f is used.
chown trac:static /var/www/static