Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
RelayServer
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
vaclab
RelayServer
Commits
c4daf0cd
Commit
c4daf0cd
authored
5 years ago
by
Rolf Niepraschk
Browse files
Options
Downloads
Patches
Plain Diff
...
parent
d34e926c
No related branches found
No related tags found
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
install
+0
-28
0 additions, 28 deletions
install
post-commit
+0
-15
0 additions, 15 deletions
post-commit
replicateRelayServer
+4
-1
4 additions, 1 deletion
replicateRelayServer
with
4 additions
and
44 deletions
install
deleted
100755 → 0
+
0
−
28
View file @
d34e926c
#! /bin/bash
# Rolf Niepraschk (Rolf.Niepraschk@ptb.de), 2019-03-11
# Vorbereitung und Start des relayServer-Prozesses.
R_PATH
=
/usr/local/share/relayServer/
# Pfad zu relayServer-Installation
dist
=
$(
lsb_release
-is
|
cut
-d
" "
-f
1 |
tr
'[A-Z]'
'[a-z]'
)
case
"
$dist
"
in
opensuse
)
cp
${
R_PATH
}
relayServer.service
\
/usr/lib/systemd/system/relayServer.service
chown
-R
nobody:nobody
${
R_PATH
}
;;
ubuntu|raspbian|debian
)
cp
${
R_PATH
}
relayServer.service
\
/lib/systemd/system/relayServer.service
chown
-R
nobody:nogroup
${
R_PATH
}
;;
esac
ln
-sf
${
R_PATH
}
vlLogging /usr/local/bin/vlLogging
systemctl daemon-reload
systemctl restart relayServer.service
systemctl
enable
relayServer.service
systemctl status relayServer.service
exit
This diff is collapsed.
Click to expand it.
post-commit
deleted
100755 → 0
+
0
−
15
View file @
d34e926c
#! /bin/bash
# see: https://coderwall.com/p/mk18zq/automatic-git-version-tagging-for-npm-modules
version
=
$(
git diff HEAD^..HEAD
--
\
"
$(
git rev-parse
--show-toplevel
)
"
/package.json |
\
grep
'^\+.*version'
|
sed
-s
's/[^0-9\.]//g'
)
if
[
"
$version
"
!=
""
]
;
then
git tag
-a
"v
$version
"
-m
"
`
git log
-1
--format
=
%s
`
"
echo
"Created a new tag, v
$version
"
git checkout production
git merge master
git push origin production
&&
git push origin production
--tags
git checkout master
fi
This diff is collapsed.
Click to expand it.
replicateRelayServer
+
4
−
1
View file @
c4daf0cd
...
@@ -22,7 +22,10 @@ function doIt {
...
@@ -22,7 +22,10 @@ function doIt {
echo
"From:
\"
$2
\"
To:
\"
$R_PATH
\"
"
echo
"From:
\"
$2
\"
To:
\"
$R_PATH
\"
"
# »-L« – Behandle Symlinks auf dem Quellsystem wie Verzeichnisse.
# »-L« – Behandle Symlinks auf dem Quellsystem wie Verzeichnisse.
# »--keep-dirlinks« – Behandle Symlinks auf dem Zielsystem wie Verzeichnisse.
# »--keep-dirlinks« – Behandle Symlinks auf dem Zielsystem wie Verzeichnisse.
rsync
--info
=
STATS1
-azL
--delete
--keep-dirlinks
--exclude
'.git'
\
rsync
--info
=
STATS1
-azL
--delete
--keep-dirlinks
\
--exclude
'.git'
\
--exclude
'docs'
\
--exclude
'tmp'
\
"
$2
"
root@
$1
:
$(
dirname
$R_PATH
)
/
"
$2
"
root@
$1
:
$(
dirname
$R_PATH
)
/
# Auf dem Zielsystem Nacharbeiten durchführen
# Auf dem Zielsystem Nacharbeiten durchführen
ssh root@
$1
${
R_PATH
}
/install
ssh root@
$1
${
R_PATH
}
/install
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment