Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
adam.huang
Oh My Zsh
Commits
60b7dd8a
Commit
60b7dd8a
authored
Nov 22, 2012
by
Carlos Alexandro Becker
Browse files
fixing various issues with build, add runinstall option
parent
a3664562
Changes
1
Show whitespace changes
Inline
Side-by-side
custom/totvs.zsh
View file @
60b7dd8a
...
@@ -11,6 +11,7 @@ ECM_PORT="8080"
...
@@ -11,6 +11,7 @@ ECM_PORT="8080"
VOLDEMORT
=
$ECM_WS
/voldemort
VOLDEMORT
=
$ECM_WS
/voldemort
ECM
=
$ECM_WS
/ecm
ECM
=
$ECM_WS
/ecm
INSTALLER
=
"n"
INSTALLER
=
"n"
DRY_CLEAN
=
"n"
# fuckin aliases
# fuckin aliases
alias
ecmu
=
ecmup
alias
ecmu
=
ecmup
...
@@ -19,6 +20,7 @@ alias ecmc=ecmclean
...
@@ -19,6 +20,7 @@ alias ecmc=ecmclean
alias
ecms
=
ecmstart
alias
ecms
=
ecmstart
alias
ecmo
=
ecmstop
alias
ecmo
=
ecmstop
alias
ecmi
=
ecminstall
alias
ecmi
=
ecminstall
alias
ecmri
=
ecmruninstall
alias
ecm
=
ecmfull
alias
ecm
=
ecmfull
# update ecm
# update ecm
...
@@ -31,13 +33,6 @@ ecmup() {
...
@@ -31,13 +33,6 @@ ecmup() {
# build it!
# build it!
ecmbuild
()
{
ecmbuild
()
{
echo
"build? no problem sir..."
echo
"build? no problem sir..."
case
$@
in
-
*
i
*
)
INSTALLER
=
y
;;
esac
cd
$VOLDEMORT
&&
mvncie
&&
\
cd
$VOLDEMORT
&&
mvncie
&&
\
cd
$VOLDEMORT
/social-ecm
&&
\
cd
$VOLDEMORT
/social-ecm
&&
\
cd
$VOLDEMORT
/wcm
&&
mvncie
&&
\
cd
$VOLDEMORT
/wcm
&&
mvncie
&&
\
...
@@ -48,6 +43,11 @@ ecmbuild() {
...
@@ -48,6 +43,11 @@ ecmbuild() {
# gen installer or cp wars...
# gen installer or cp wars...
ecminstall
()
{
ecminstall
()
{
case
$@
in
-
*
i
*
)
INSTALLER
=
y
;;
esac
if
[[
"
$INSTALLER
"
==
"y"
]]
;
then
if
[[
"
$INSTALLER
"
==
"y"
]]
;
then
echo
"generating installer..."
echo
"generating installer..."
cd
$VOLDEMORT
/ecm/installer
cd
$VOLDEMORT
/ecm/installer
...
@@ -63,19 +63,47 @@ ecminstall() {
...
@@ -63,19 +63,47 @@ ecminstall() {
# clean jboss trash folders
# clean jboss trash folders
ecmclean
()
{
ecmclean
()
{
echo
"cleaning jboss shit"
echo
"cleaning jboss shit"
rm
-rf
$ECM_JBOSS
/standalone/
{
deployments/
*
,log,tmp
}
2> /dev/null
case
$@
in
-
*
d
*
)
DRY_CLEAN
=
"y"
;;
esac
if
[[
"
$DRY_CLEAN
"
==
"y"
]]
;
then
rm
-rf
$ECM_JBOSS
/standalone/deployments/
*
.
{
failed,deployed,dodeploy,deploying
}
else
rm
-rf
$ECM_JBOSS
/standalone/deployments/
*
fi
rm
-rf
$ECM_JBOSS
/standalone/
{
log,tmp,data
}
rm
-rf
$ECM_JBOSS
/solr/zoo_data
}
}
# start jboss server
# start jboss server
ecmstart
()
{
ecmstart
()
{
# why shall I start server if i just gen a installer?
# why shall I start server if i just gen a installer?
if
[[
"
$INSTALLER
"
==
"n"
]]
;
then
if
[[
"
$INSTALLER
"
==
"y"
]]
;
then
ecmruninstall
else
echo
"starting jboss"
echo
"starting jboss"
cd
$ECM_JBOSS
/bin
cd
$ECM_JBOSS
/bin
JAVA_OPTS
=
"-Xmx2048m -XX:MaxPermSize=512m -DzkRun -Dbootstrap_conf=true"
./standalone.sh
JAVA_OPTS
=
"-Xmx2048m -XX:MaxPermSize=512m -DzkRun -Dbootstrap_conf=true"
./standalone.sh
fi
fi
}
}
ecmruninstall
()
{
echo
"ok, lets install this crap :)"
cd
$VOLDEMORT
/ecm/installer/izpack/target
if
[[
-f
ECM-Linux64.zip
]]
;
then
mkdir
-p
/tmp/ecmi
rm
-rf
/tmp/ecmi/
*
unzip ECM-Linux64
-d
/tmp/ecmi/
cd
/tmp/ecmi/
chmod
a+x ECM-Installer-64.sh
./ECM-Installer-64.sh
else
echo
"uhoh, installer doesnt exist (
$VOLDEMORT
/ecm/installer/izpack/target/ECM-Linux64.zip)"
fi
}
# stop jboss (usually on 8080)
# stop jboss (usually on 8080)
ecmstop
()
{
ecmstop
()
{
echo
"kill jboss (or whatever you are running on 8080"
echo
"kill jboss (or whatever you are running on 8080"
...
...
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