Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Z
zimbra
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
zimbra
Commits
574ff8c0
Commit
574ff8c0
authored
Apr 16, 2013
by
Marco Mariani
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
removed checks for zimbra user and sudo calls
parent
11acaf6e
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
20 additions
and
19 deletions
+20
-19
ZimbraServer/src/bin/zmconfigdctl
ZimbraServer/src/bin/zmconfigdctl
+5
-4
ZimbraServer/src/bin/zmmailboxdctl
ZimbraServer/src/bin/zmmailboxdctl
+5
-5
ZimbraServer/src/bin/zmtlsctl
ZimbraServer/src/bin/zmtlsctl
+5
-6
ZimbraServer/src/libexec/zmiptool
ZimbraServer/src/libexec/zmiptool
+5
-4
No files found.
ZimbraServer/src/bin/zmconfigdctl
View file @
574ff8c0
...
...
@@ -14,10 +14,11 @@
# ***** END LICENSE BLOCK *****
#
if
[
x
`
whoami
`
!=
xzimbra
]
;
then
echo
Error: must be run as zimbra user
exit
1
fi
## XXX SLAPOS user will not be 'zimbra'
#if [ x`whoami` != xzimbra ]; then
# echo Error: must be run as zimbra user
# exit 1
#fi
source
`
dirname
$0
`
/zmshutil
||
exit
1
zmsetvars
\
...
...
ZimbraServer/src/bin/zmmailboxdctl
View file @
574ff8c0
...
...
@@ -69,7 +69,7 @@ case "$1" in
if
[
"x
$2
"
=
"x"
]
;
then
${
zimbra_home
}
/bin/zmtlsctl
>
/dev/null 2>&1
fi
sudo
${
zimbra_home
}
/libexec/zmmailboxdmgr status
${
zimbra_home
}
/libexec/zmmailboxdmgr status
if
[
$?
=
0
]
;
then
echo
"mailboxd already running."
exit
0
...
...
@@ -105,7 +105,7 @@ case "$1" in
mailboxd_java_options
=
"
${
mailboxd_java_options
}
-Dsun.net.inetaddr.ttl=
${
networkaddress_cache_ttl
}
"
fi
echo
-n
"Starting mailboxd..."
sudo
${
zimbra_home
}
/libexec/zmmailboxdmgr start
\
${
zimbra_home
}
/libexec/zmmailboxdmgr start
\
-Dfile
.encoding
=
UTF-8
${
mailboxd_java_options
}
${
spnegoJavaOptions
}
-Xms
${
javaXms
}
m
\
-Xmx
${
javaXmx
}
m
-Xmn
${
javaXmn
}
m < /dev/null
>
/dev/null 2>&1
status
=
$?
...
...
@@ -119,13 +119,13 @@ case "$1" in
'kill'
|
'stop'
)
echo
-n
"Stopping mailboxd..."
sudo
${
zimbra_home
}
/libexec/zmmailboxdmgr status
${
zimbra_home
}
/libexec/zmmailboxdmgr status
if
[
$?
!=
0
]
;
then
echo
"mailboxd is not running."
exit
0
fi
${
zimbra_home
}
/bin/zmthrdump
-i
-o
${
zimbra_home
}
/log/stacktrace.
$$
.
$(
date
+%Y%m%d%H%M%S
)
2> /dev/null
sudo
${
zimbra_home
}
/libexec/zmmailboxdmgr stop
${
zimbra_home
}
/libexec/zmmailboxdmgr stop
if
[
$?
=
0
]
;
then
echo
"done."
else
...
...
@@ -142,7 +142,7 @@ case "$1" in
'status'
)
echo
-n
"mailboxd is "
sudo
${
zimbra_home
}
/libexec/zmmailboxdmgr status
${
zimbra_home
}
/libexec/zmmailboxdmgr status
if
[
$?
=
0
]
;
then
echo
"running."
exit
0
...
...
ZimbraServer/src/bin/zmtlsctl
View file @
574ff8c0
...
...
@@ -14,12 +14,11 @@
# ***** END LICENSE BLOCK *****
#
if
[
x
`
whoami
`
!=
"xzimbra"
]
;
then
echo
"
$0
must be run as user zimbra"
exit
1
fi
## XXX SLAPOS user will not be 'zimbra'
# if [ x`whoami` != "xzimbra" ]; then
# echo "$0 must be run as user zimbra"
# exit 1
# fi
source
`
dirname
$0
`
/zmshutil
||
exit
1
zmsetvars
\
...
...
ZimbraServer/src/libexec/zmiptool
View file @
574ff8c0
...
...
@@ -23,10 +23,11 @@ our %loaded = ();
my
$id
=
getpwuid
(
$<
);
chomp
$id
;
if
(
$id
ne
"
zimbra
")
{
print
STDERR
"
Error: must be run as zimbra user
\n
";
exit
(
1
);
}
## XXX SLAPOS user will not be 'zimbra'
#if ($id ne "zimbra") {
# print STDERR "Error: must be run as zimbra user\n";
# exit (1);
#}
my
(
$help
,
$dryrun
,
$mode
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment