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

parameter for destination host

parent 784b8957
No related branches found
No related tags found
No related merge requests found
......@@ -6,13 +6,14 @@
# Aufruf:
#
# ./install
# ./install
# $1 = host (optional, default: localhost)
PROJECT="webapps-deliverer"
SOURCE_PATH=../${PROJECT}/
DEST_PATH=/usr/local/share/
TARGET_HOST=a73434.berlin.ptb.de
TARGET_HOST=${1:-localhost}
TARGET_PATH=${DEST_PATH}${PROJECT}
FILE_LIST="./files.dat"
DEST_USER=nobody
......@@ -30,9 +31,9 @@ rsync --info=STATS1 -azvL --delete --keep-dirlinks \
ssh root@${TARGET_HOST} /bin/bash -l <<EOF
chown -R ${DEST_USER} ${TARGET_PATH}
cd ${TARGET_PATH}
systemctl link \$PWD/webapps-deliverer.service
systemctl enable webapps-deliverer.service
systemctl daemon-reload
systemctl link \$PWD/webapps-deliverer.service
systemctl enable webapps-deliverer.service
systemctl restart webapps-deliverer.service
systemctl status webapps-deliverer.service
EOF
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment