Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
Webapps Deliverer
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container 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
Webapps Deliverer
Commits
24918b85
Commit
24918b85
authored
4 years ago
by
Rolf Niepraschk
Browse files
Options
Downloads
Patches
Plain Diff
...
parent
ca190cc6
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
install
+44
-0
44 additions, 0 deletions
install
with
44 additions
and
0 deletions
install
0 → 100755
+
44
−
0
View file @
24918b85
#! /bin/bash
# Rolf Niepraschk (Rolf.Niepraschk@ptb.de), 2020-11-11
# Verteilt webapps-deliverer-Dateien zum Ziel-Rechnern per "rsync" und
# aktiviert den webapps-deliverer-Prozess dort.
# Aufruf:
#
# ./install
PROJECT
=
"webapps-deliverer"
SOURCE_PATH
=
../
${
PROJECT
}
/
DEST_PATH
=
/usr/local/share/
TARGET_HOST
=
a73434.berlin.ptb.de
TARGET_PATH
=
${
DEST_PATH
}${
PROJECT
}
FILE_LIST
=
"./files.dat"
DEST_USER
=
nobody
FILES
=
"README.md server server.py setup.py webapps-deliverer.service"
rm
-rf
${
FILE_LIST
}
for
f
in
${
FILES
}
;
do
echo
"
${
SOURCE_PATH
}
$f
"
>>
${
FILE_LIST
}
done
rsync
--info
=
STATS1
-azvL
--delete
--keep-dirlinks
\
--files-from
=
${
FILE_LIST
}
../ root@
${
TARGET_HOST
}
:
${
DEST_PATH
}
ssh root@
${
TARGET_HOST
}
/bin/bash
-l
<<
EOF
chown -R
${
DEST_USER
}
${
TARGET_PATH
}
cd
${
TARGET_PATH
}
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
exit
exit
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