summarylogtreecommitdiffstats
path: root/freeswitch.install
diff options
context:
space:
mode:
Diffstat (limited to 'freeswitch.install')
-rw-r--r--freeswitch.install6
1 files changed, 3 insertions, 3 deletions
diff --git a/freeswitch.install b/freeswitch.install
index 72c30dc8ac11..c30c2e46df70 100644
--- a/freeswitch.install
+++ b/freeswitch.install
@@ -4,7 +4,7 @@ pre_install() {
echo 'Adding group freeswitch'
groupadd -r freeswitch
fi
- id freeswitch > /dev/null
+ id freeswitch > /dev/null 2>&1
if [ $? -ne 0 ];then
echo 'Adding user freeswitch'
useradd -d /usr/share/freeswitch -r -g freeswitch freeswitch
@@ -40,8 +40,8 @@ post_upgrade() {
}
post_remove() {
- rm -rf /etc/freeswitch
- echo 'Not removing /usr/share/freeswitch/conf/ config directories!! If you do not want to keep them, rm -rf them away'
+ #rm -rf /etc/freeswitch
+ #echo 'Not removing /usr/share/freeswitch/conf/ config directories!! If you do not want to keep them, rm -rf them away'
userdel -rf freeswitch
getent group freeswitch &> /dev/null && groupdel freeswitch
true