[Pkg-voip-commits] r2696 - op-panel/trunk/debian
Alejandro Rios P.
alerios-guest at alioth.debian.org
Tue Nov 14 06:53:56 CET 2006
Author: alerios-guest
Date: 2006-11-14 06:53:55 +0100 (Tue, 14 Nov 2006)
New Revision: 2696
Modified:
op-panel/trunk/debian/changelog
op-panel/trunk/debian/postinst
Log:
* Use asterisk user instead of op-panel (Closes: #398380).
Modified: op-panel/trunk/debian/changelog
===================================================================
--- op-panel/trunk/debian/changelog 2006-11-12 03:26:41 UTC (rev 2695)
+++ op-panel/trunk/debian/changelog 2006-11-14 05:53:55 UTC (rev 2696)
@@ -1,15 +1,13 @@
op-panel (0.26.dfsg-5) UNRELEASED; urgency=low
* NOT RELEASED YET
-
- [Alejandro Rios P.]
* Added LSB part to init script.
* Removed unneeded debian/todo file
* Added missing stuff on debian/copyright.
- * Allow restarting for processes on asterisk group (say daestar, freepbx,
- etc.).
+ * Use asterisk user instead of op-panel to allow restarting
+ for processes on asterisk group (say daestar, freepbx, etc.) (Closes: #398380).
- -- Santiago Ruano Rincón <santiago at debian.org> Thu, 26 Oct 2006 01:22:19 -0500
+ -- Alejandro Rios P. <alejandro.rios at avatar.com.co> Tue, 14 Nov 2006 00:50:06 -0500
op-panel (0.26.dfsg-4) unstable; urgency=low
Modified: op-panel/trunk/debian/postinst
===================================================================
--- op-panel/trunk/debian/postinst 2006-11-12 03:26:41 UTC (rev 2695)
+++ op-panel/trunk/debian/postinst 2006-11-14 05:53:55 UTC (rev 2696)
@@ -17,15 +17,14 @@
# the debian-policy package
#
-USER=op-panel
+USER=asterisk
GROUP=asterisk
case "$1" in
configure)
- # lets run op-panel in a separate user
+ # lets run op-panel with asterisk user
if ! (getent passwd $USER >/dev/null) ; then
- adduser --system --group --home /var/lib/$USER --gecos "Flash Operator Panel user" $USER
- adduser $USER $GROUP
+ adduser --system --group --home /var/lib/asterisk --no-create-home --gecos "Asterisk PBX daemon" $USER
fi
touch /var/lib/op-panel/variables.txt
@@ -36,8 +35,8 @@
chmod -R g+rw /etc/op-panel/asternic/
chown -R $USER.$GROUP /var/log/op-panel/
chmod -R g+rw /var/log/op-panel/
- chown $USER.$GROUP /var/run/op-panel/
- chmod g+rw /var/run/op-panel/
+ chown -R $USER.$GROUP /var/run/op-panel/
+ chmod -R g+rw /var/run/op-panel/
chown -R $USER.$GROUP /usr/share/op-panel/
chmod -R g+rw /usr/share/op-panel/
More information about the Pkg-voip-commits
mailing list