Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Q
qg-docker-entrypoints
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
QA
qg-docker-entrypoints
Commits
d14ed0eb
Commit
d14ed0eb
authored
May 10, 2018
by
kalvin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
f
parent
c3c33ef1
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
26 additions
and
27 deletions
+26
-27
run.sh
dev/java/run.sh
+26
-27
No files found.
dev/java/run.sh
View file @
d14ed0eb
...
@@ -78,6 +78,32 @@ else
...
@@ -78,6 +78,32 @@ else
echo
"clean
${
log_path
}
/*"
echo
"clean
${
log_path
}
/*"
#历史遗留问题,抽空fix
#历史遗留问题,抽空fix
echo
"replaceGitRemote"
echo
"replaceGitRemote"
replaceGitRemote
(){
originDomain
=
"192.168.3.60"
activeDomain
=
"git.q-gp.com"
gdir
=
/home/qg-xterm
cd
$gdir
&&
echo
'进入'
$gdir
git rev-parse
--is-inside-work-tree
2>&1 1>/dev/null
;
# 有个不行
if
[
$?
-ne
0
]
then
echo
"不是git目录
$gdir
"
$?
;
cd
..
continue
fi
remoteUrl
=
`
git config
--get
remote.origin.url
`
echo
$remoteUrl
|
grep
$originDomain
if
[
$?
-eq
0
]
then
remoteGit
=
"
${
remoteUrl
/
$originDomain
/
$activeDomain
}
"
echo
'替换后的'
$remoteGit
git remote set-url origin
$remoteGit
||
echo
"修改失败"
#状态
fi
cd
-
}
replaceGitRemote
replaceGitRemote
rm
-rf
${
log_path
}
/
*
rm
-rf
${
log_path
}
/
*
...
@@ -130,32 +156,5 @@ else
...
@@ -130,32 +156,5 @@ else
echo
"tail -f ./logs/*log"
echo
"tail -f ./logs/*log"
tail
-f
./logs/
*
log
tail
-f
./logs/
*
log
replaceGitRemote
(){
originDomain
=
"192.168.3.60"
activeDomain
=
"git.q-gp.com"
gdir
=
/home/qg-xterm
cd
$gdir
&&
echo
'进入'
$gdir
git rev-parse
--is-inside-work-tree
2>&1 1>/dev/null
;
# 有个不行
if
[
$?
-ne
0
]
then
echo
"不是git目录
$gdir
"
$?
;
cd
..
continue
fi
remoteUrl
=
`
git config
--get
remote.origin.url
`
echo
$remoteUrl
|
grep
$originDomain
if
[
$?
-eq
0
]
then
remoteGit
=
"
${
remoteUrl
/
$originDomain
/
$activeDomain
}
"
echo
'替换后的'
$remoteGit
git remote set-url origin
$remoteGit
||
echo
"修改失败"
#状态
fi
cd
-
}
fi
fi
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