tcpasters/contrib/systemd/tcp-deploy.service
Thorsten Schubert 762bf9ed8e
All checks were successful
continuous-integration/drone/push Build is passing
OCI compatible container configuration
2022-09-17 10:03:52 +02:00

17 lines
No EOL
648 B
Desktop File

# /etc/systemd/system/tcp-deploy.service
# SPDX-License-Identifier: AGPL-3.0-or-later
# Copyright © 2022 Thorsten Schubert <tschubert@bafh.org>
[Unit]
Description=Install tcpaste binaries
[Service]
Type=oneshot
SyslogIdentifier=tcp-deploy
ExecStart=/usr/bin/sh -c '/usr/bin/install --verbose --owner root --group root --mode=0755 --preserve-timestamps -t /usr/local/bin /tmp/drone/src/target/x86_64-unknown-linux-gnu/release/tcp-*'
ExecStartPost=/usr/bin/systemctl restart tcp-erased.service tcp-pasted.service tcp-filter-hasher.timer tcp-filter-nude.timer
ExecStartPost=/usr/bin/sh -c 'rm -rvf /tmp/drone'
[Install]
WantedBy=multi-user.target