Skip to content
Snippets Groups Projects
Commit c4daf0cd authored by Rolf Niepraschk's avatar Rolf Niepraschk
Browse files

...

parent d34e926c
Branches
Tags
No related merge requests found
#! /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
#! /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
......@@ -22,7 +22,10 @@ function doIt {
echo "From: \"$2\" To: \"$R_PATH\""
# »-L« – Behandle Symlinks auf dem Quellsystem 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)/
# Auf dem Zielsystem Nacharbeiten durchführen
ssh root@$1 ${R_PATH}/install
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment