Added a systemd unit and logrotate configuration, packaged in the release
This commit is contained in:
1 parent
1e3acaeff3
commit
2aeb2993b0
4 files changed
+137
-2
No files matched your search
+7
-2
@@ -62,12 +62,17 @@ go build \
|
||||
|
||||
echo "Built $BUILD_DIR/job-search-$VERSION"
|
||||
|
||||
# If proper release, copy to output directory for packaging
|
||||
# If proper release, copy to output directory for packaging, with the
|
||||
# systemd unit and logrotate configuration (see README.md, "Running as a
|
||||
# service")
|
||||
if [[ $DO_RELEASE -eq 1 ]]; then
|
||||
install -DT $BUILD_DIR/job-search-$VERSION $RELEASE_DIR/job-search
|
||||
install -DT -m 644 deploy/job-search.service $RELEASE_DIR/job-search.service
|
||||
install -DT -m 644 deploy/job-search.logrotate $RELEASE_DIR/job-search.logrotate
|
||||
ARCH=`dpkg --print-architecture`
|
||||
tar -czf $RELEASE_DIR/job-search-$VERSION-$ARCH.tar.gz \
|
||||
--transform "s,^$RELEASE_DIR/,job-search-$VERSION-$ARCH/," \
|
||||
$RELEASE_DIR/job-search
|
||||
$RELEASE_DIR/job-search $RELEASE_DIR/job-search.service \
|
||||
$RELEASE_DIR/job-search.logrotate
|
||||
echo "Installed $RELEASE_DIR/job-search"
|
||||
fi
|
||||
Reference in new issue
Block a user