pve-fake-subscription/package.sh

17 lines
301 B
Bash
Raw Normal View History

2019-06-22 15:00:22 +00:00
#!/bin/bash
2022-09-16 01:11:36 +00:00
set -Eeuo pipefail
cd "$( dirname "${BASH_SOURCE[0]}" )" || exit 1
2019-06-22 15:00:22 +00:00
OUT_DIR="out"
2019-06-22 15:00:22 +00:00
rm -rf "${OUT_DIR}"
mkdir -p "${OUT_DIR}"
# build package
nfpm pkg --packager deb --target "${OUT_DIR}"
# generate checksum
pushd "${OUT_DIR}" >/dev/null
sha256sum -b -- * > sha256sum.txt
popd >/dev/null