Hi, not sure if this is the correct way but this seems to work for me: d /var/lib/uberbot 0750 Z /etc/uberbot 0755 uberbot uberbot z /etc/uberbot/config.toml 0644 uberbot uberbot Not sure if you fixed your package() already but there were some errors with the install cmds... package() { install -Dm755 "$_upstream_name/target/release/$_upstream_name" "$pkgdir/usr/bin/$_upstream_name" install -Dm644 "$_upstream_name.service" "$pkgdir/usr/lib/systemd/system/$_upstream_name.service" install -Dm644 "$_upstream_name.tmpfiles" "$pkgdir/usr/lib/tmpfiles.d/$_upstream_name.conf" install -Dm644 "$_upstream_name.sysusers" "$pkgdir/usr/lib/sysusers.d/$_upstream_name.conf" install -Dm644 "config.toml" "$pkgdir/etc/uberbot/config.toml" } Also I would suggest to put the config.toml in the backup-array so it doesn't get overwritten by pacman on updates! Greets. 13.06.2023 01:01:33 Polarian <polarian@polarian.dev>:
Hello,
This forum post seems to have a similar problem. https://bbs.archlinux.org/viewtopic.php?id=260924
This did not help, this was due to them messing up their filesystem permissions, I do not think my filesystem permissions are the issue here, I believe it is a mistake I made with the package.
In their case it was / being owned by the user not by root which caused the error. Have you checked directory ownership of /etc/uberbot? My translation of the error message is "I don't want to make this directory owned by root because it's owned by a user and that could break things". Dunno if any of that is helpful.
/etc/uberbot is uberbot:uberbot /etc/uberbot/config.toml is root:root
Because tmpfiles.d refuses to change it to uberbot:uberbot, and I do not know why, so it appears to be an issue with changing the ownership of /etc/uberbot/config.toml.
If anyone knows, please met me know.
Thanks, -- Polarian GPG signature: 0770E5312238C760 Website: https://polarian.dev JID/XMPP: polarian@polarian.dev