Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
C
cockroach-deploy
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Incidents
Environments
Packages & Registries
Packages & Registries
Container Registry
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
James Coyle
cockroach-deploy
Commits
da4d332f
Commit
da4d332f
authored
Nov 11, 2016
by
tomogoma
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Reorganize - logic; put common commands together
parent
4acae95a
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
7 deletions
+6
-7
systemdInstaller.sh
systemdInstaller.sh
+1
-1
systemdUninstaller.sh
systemdUninstaller.sh
+5
-6
No files found.
systemdInstaller.sh
View file @
da4d332f
...
...
@@ -21,7 +21,7 @@ function setInstallDirs {
extension
=
"
${
filename
##*.
}
"
filename
=
"
${
filename
%.*
}
"
mv
-f
"
$filename
/cockroach"
"
$APP_DIR
/cockroach"
||
exit
1
rm
-r
"
$filename
"
rm
-r
f
"
$filename
"
mkdir
-p
"
$DATA_DIR
"
||
exit
1
}
...
...
systemdUninstaller.sh
View file @
da4d332f
...
...
@@ -8,13 +8,14 @@ DATA_DIR="/var/data/cockroachdb/"
echo
"Uninstalling..."
if
[
-f
"
$
APP
_FILE
"
]
;
then
if
[
-f
"
$
SYSTEMD
_FILE
"
]
;
then
systemctl stop cockroach.service
>
/dev/null
rm
-rf
"
$APP_FILE
"
rm
-f
"
$SYSTEMD_FILE
"
systemctl daemon-reload
fi
if
[
-f
"
$
SYSTEMD
_FILE
"
]
;
then
rm
-f
"
$
SYSTEMD
_FILE
"
if
[
-f
"
$
APP
_FILE
"
]
;
then
rm
-f
"
$
APP
_FILE
"
fi
if
[
-d
"
$ETCD_DIR
"
]
;
then
...
...
@@ -26,6 +27,4 @@ fi
echo
"Data at
$DATA_DIR
not removed, run 'rm
$DATA_DIR
' if you wish to delete"
echo
"Done!"
`
systemctl daemon-reload
`
exit
0
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