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
117bcabe
Commit
117bcabe
authored
Mar 27, 2013
by
Marco Mariani
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
remove and create $ZIMBRA_HOME instead of /opt/zimbra
parent
e25f31d4
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
11 deletions
+11
-11
ThirdParty/buildThirdParty.sh
ThirdParty/buildThirdParty.sh
+11
-11
No files found.
ThirdParty/buildThirdParty.sh
View file @
117bcabe
...
...
@@ -36,7 +36,7 @@ usage() {
echo
""
echo
"Usage: "
`
basename
$0
`
" [-b] -c [-p] [-s]"
>
&2
echo
"-b: Use beta software versions"
echo
"-c: Remove contents of
/opt/zimbra
(clean)"
echo
"-c: Remove contents of
${
ZIMBRA_HOME
}
(clean)"
echo
"-p: Use private CPAN mirror"
echo
"-s: Re-sync source before building"
exit
2
;
...
...
@@ -156,7 +156,7 @@ RELEASE=${RELEASE##*/}
if
[
x
$CLEAN
=
x
"no"
]
;
then
echo
"WARNING: You must supply the clean option -c"
echo
"WARNING: This will completely remove the contents of
/opt/zimbra
from the system"
echo
"WARNING: This will completely remove the contents of
${
ZIMBRA_HOME
}
from the system"
exit
1
;
fi
...
...
@@ -176,7 +176,7 @@ if [ x$PLAT = "x" ]; then
fi
if
[
x
$OVERRIDE
=
x
"no"
]
;
then
askYN
"Proceeding will remove
/opt/zimbra
. Do you wish to continue?: "
"N"
askYN
"Proceeding will remove
${
ZIMBRA_HOME
}
. Do you wish to continue?: "
"N"
if
[
$response
=
"no"
]
;
then
echo
"Exiting"
exit
1
;
...
...
@@ -299,11 +299,11 @@ if [[ $PLAT != "MACOSX"* ]]; then
fi
if
[
x
"
$ZIMBRA
"
=
x
"no"
]
;
then
echo
"Cleaning contents of
/opt/zimbra
"
if
[
-d
"
/opt/zimbra
"
]
;
then
rm
-rf
/opt/zimbra
/
*
2>/dev/null
rm
-rf
/opt/zimbra
/.
*
2>/dev/null
mkdir
-p
/opt/zimbra
echo
"Cleaning contents of
${
ZIMBRA_HOME
}
"
if
[
-d
"
${
ZIMBRA_HOME
}
"
]
;
then
rm
-rf
${
ZIMBRA_HOME
}
/
*
2>/dev/null
rm
-rf
${
ZIMBRA_HOME
}
/.
*
2>/dev/null
mkdir
-p
${
ZIMBRA_HOME
}
fi
else
if
[
-x
"/home/build/scripts/setup-build.sh"
]
;
then
...
...
@@ -314,14 +314,14 @@ else
fi
fi
touch
/opt/zimbra
/blah 2>/dev/null
touch
${
ZIMBRA_HOME
}
/blah 2>/dev/null
RC
=
$?
if
[
$RC
-eq
1
]
;
then
echo
"Error: Unable to write to
/opt/zimbra
"
echo
"Error: Unable to write to
${
ZIMBRA_HOME
}
"
exit
1
;
else
rm
-f
/opt/zimbra
/blah
rm
-f
${
ZIMBRA_HOME
}
/blah
fi
if
[
x
$PUBLIC
=
x
"yes"
]
;
then
...
...
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