osmith has uploaded this change for review.
debian/postinst: don't change /etc/osmocom
osmo_dia2gsup doesn't have a config file in /etc/osmocom. The path I put
there didn't make sense.
Fix for:
chown: cannot access '/etc/osmocom/osmo_dia2gsup.service': No such file or directory
Fixes: 240b43f3 ("contrib/systemd: run as osmocom user")
Change-Id: I32a06db20c53fdc136989f41805c78e5d9420b9b
---
M debian/postinst
1 file changed, 16 insertions(+), 4 deletions(-)
git pull ssh://gerrit.osmocom.org:29418/erlang/osmo_dia2gsup refs/changes/98/36798/1
diff --git a/debian/postinst b/debian/postinst
index f9f64c8..680cb2f 100755
--- a/debian/postinst
+++ b/debian/postinst
@@ -16,10 +16,6 @@
fi
# Fix permissions of previous (root-owned) install (OS#4107)
- chown osmocom:osmocom /etc/osmocom/osmo_dia2gsup.service
- chmod 0660 /etc/osmocom/osmo_dia2gsup.service
- chown root:osmocom /etc/osmocom
- chmod 2775 /etc/osmocom
mkdir -p /var/lib/osmo_dia2gsup
chown -R osmocom:osmocom /var/lib/osmo_dia2gsup
;;
To view, visit change 36798. To unsubscribe, or for help writing mail filters, visit settings.