Skip to content

Commit

Permalink
spec-file - Add post-install script to enable user_allow_other in /et…
Browse files Browse the repository at this point in the history
…c/fuse.conf

- Added a script to the RPM spec file that checks for the presence of
  'user_allow_other' in /etc/fuse.conf.
- If the line is not found, it appends 'user_allow_other' to the file.
- This change ensures that users can allow non-root users to access
  FUSE filesystems.
  • Loading branch information
SiskaPavel committed Oct 6, 2024
1 parent 93f8daa commit 78ed927
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions pkg/rpm/telemetry.spec.in
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,12 @@ telemetry data in your program.
%install
%cmake_install

%post
# Add a line to /etc/fuse.conf if it doesn't already exist
if ! grep -q "^user_allow_other" /etc/fuse.conf; then
echo "user_allow_other" >> /etc/fuse.conf
fi

%files
%license LICENSE
%{_libdir}/libtelemetry.so
Expand Down

0 comments on commit 78ed927

Please sign in to comment.