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
ab6a5bd0
Commit
ab6a5bd0
authored
May 07, 2013
by
Marco Mariani
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
removed a few chown calls
parent
2a9073fd
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
19 additions
and
11 deletions
+19
-11
ZimbraBuild/rpmconf/Install/zmsetup.pl
ZimbraBuild/rpmconf/Install/zmsetup.pl
+19
-11
No files found.
ZimbraBuild/rpmconf/Install/zmsetup.pl
View file @
ab6a5bd0
...
...
@@ -263,7 +263,8 @@ if (-d "/opt/zimbra/log") {
main::
progress
("
Moving
$logfile
to /opt/zimbra/log
\n
");
my
$dstlog
=
"
zmsetup.
"
.
getDateStamp
()
.
"
.txt
";
system
("
cp -f
$logfile
/opt/zimbra/log/
$dstlog
");
system
("
chown zimbra:zimbra /opt/zimbra/log/
$dstlog
");
# XXX SLAPOS must belong to current user
# system("chown zimbra:zimbra /opt/zimbra/log/$dstlog");
}
################################################################
...
...
@@ -1275,7 +1276,8 @@ sub installLdapConfig {
system
("
cp -f
$config_src
/cn
\
=config/olcDatabase
\
=
\
{2
\
}mdb/olcOverlay
\
=
\
{2
\
}noopsrch.ldif
$config_dest
/cn
\
=config/olcDatabase
\
=
\
{2
\
}mdb/olcOverlay
\
=
\
{2
\
}noopsrch.ldif
");
`
chmod 600
$config_dest
/cn
\
=config.ldif
`;
`
chmod 600
$config_dest
/cn
\
=config/*.ldif
`;
`
chown -R zimbra:zimbra
$config_dest
`;
# XXX SLAPOS must belong to current user
# `chown -R zimbra:zimbra $config_dest`;
main::
progress
("
done.
\n
");
}
}
...
...
@@ -3091,7 +3093,8 @@ sub setLicenseFile {
system
("
cp
$config
{LICENSEFILE} /opt/zimbra/conf/ZCSLicense.xml
")
if
(
$config
{
LICENSEFILE
}
ne
"
/opt/zimbra/conf/ZCSLicense.xml
");
if
(
-
f
"
/opt/zimbra/conf/ZCSLicense.xml
")
{
`
chown zimbra:zimbra /opt/zimbra/conf/ZCSLicense.xml
`;
# XXX SLAPOS must belong to current user
# `chown zimbra:zimbra /opt/zimbra/conf/ZCSLicense.xml`;
`
chmod 444 /opt/zimbra/conf/ZCSLicense.xml
`;
}
}
...
...
@@ -5223,7 +5226,8 @@ sub configCreateCert {
if
(
!-
f
"
$config
{mailboxd_keystore}
"
&&
!-
f
"
/opt/zimbra/ssl/zimbra/server/server.crt
"
)
{
if
(
!-
d
"
$config
{mailboxd_directory}
")
{
`
mkdir -p
$config
{mailboxd_directory}/etc
`;
`
chown -R zimbra:zimbra
$config
{mailboxd_directory}
`;
# XXX SLAPOS must belong to current user
# `chown -R zimbra:zimbra $config{mailboxd_directory}`;
`
chmod 744
$config
{mailboxd_directory}/etc
`;
}
progress
(
"
Creating SSL zimbra-store certificate...
"
);
...
...
@@ -6089,7 +6093,8 @@ sub configInstallZimlets {
mkdir
(
$zimlet_directory
)
if
(
!
-
d
$zimlet_directory
);
chown
(
$uid
,
$gid
,
$zimlet_directory
);
# XXX SLAPOS must belong to current user
# chown($uid,$gid, $zimlet_directory);
chmod
(
0755
,
$zimlet_directory
);
system
("
/bin/rm -rf
$zimlet_properties
")
...
...
@@ -6680,7 +6685,8 @@ sub applyConfig {
postinstall::
configure
();
`
touch /opt/zimbra/.bash_history
`;
`
chown zimbra:zimbra /opt/zimbra/.bash_history
`;
# XXX SLAPOS must belong to current user
# `chown zimbra:zimbra /opt/zimbra/.bash_history`;
if
(
isFoss
()
&&
!
$newinstall
)
{
startLdap
()
if
(
$ldapConfigured
);
...
...
@@ -6690,10 +6696,11 @@ sub applyConfig {
if
(
$config
{
STARTSERVERS
}
eq
"
yes
")
{
# bug 6270
if
(
isEnabled
("
zimbra-store
"))
{
`
chown zimbra:zimbra /opt/zimbra/redolog/redo.log
`
if
((
$platform
=~
m/DEBIAN/
||
$platform
=~
m/UBUNTU/
)
&&
!
$newinstall
);
}
# XXX SLAPOS must belong to current user
# if (isEnabled("zimbra-store")) {
# `chown zimbra:zimbra /opt/zimbra/redolog/redo.log`
# if (($platform =~ m/DEBIAN/ || $platform =~ m/UBUNTU/) && ! $newinstall);
# }
progress
(
"
Starting servers...
"
);
if
(
$
main::
platform
=~
/MACOSX/
)
{
...
...
@@ -6755,7 +6762,8 @@ sub applyConfig {
main::
progress
("
Moving
$logfile
to /opt/zimbra/log
\n
");
my
$dstlog
=
"
zmsetup.
"
.
getDateStamp
()
.
"
.txt
";
system
("
cp -f
$logfile
/opt/zimbra/log/
$dstlog
");
system
("
chown zimbra:zimbra /opt/zimbra/log/
$dstlog
");
# XXX SLAPOS must belong to current user
# system("chown zimbra:zimbra /opt/zimbra/log/$dstlog");
}
else
{
progress
(
"
Operations logged to
$logfile
\n
"
);
}
...
...
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