Skip to content
Snippets Groups Projects
Unverified Commit be036ba6 authored by Sébastien Blin's avatar Sébastien Blin
Browse files

packaging: fix permissions issues

generated files should be using correct UID:GID
Change-Id: I5eae54d683862154a873787c3d8e1b73b55b0beb
parent 2b7a421e
No related branches found
No related tags found
No related merge requests found
......@@ -133,3 +133,4 @@ dpkg-buildpackage -b -uc -us ${DPKG_BUILD_OPTIONS}
# Move the artifacts to the output.
mv ../*deb /opt/output # .deb and .ddeb packages
chown -R "${CURRENT_UID}:${CURRENT_UID}" /opt/output
chown -R "${CURRENT_UID}:${CURRENT_UID}" .
......@@ -144,6 +144,7 @@ rpmbuild --define "debug_package %{nil}" -ba jami.spec
mv /root/rpmbuild/RPMS/*/* /opt/output
touch /opt/output/.packages-built
chown -R "$CURRENT_UID:$CURRENT_UID" /opt/output
chown -R "${CURRENT_UID}:${CURRENT_UID}" .
# TODO: One click install: create a package that combines the already
# built package into one.
......@@ -35,4 +35,5 @@ snapcraft # requires snapcraft >= 4.8
# move the built snap to output
mv *.snap /opt/output/
chown -R "${CURRENT_UID}:${CURRENT_UID}" .
chown ${CURRENT_UID}:${CURRENT_GID} /opt/output/*.snap
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