Skip to content
Merged
Show file tree
Hide file tree
Changes from 4 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions tools/packaging/tempo-postinstall.sh
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,10 @@ cleanInstall() {
adduser --system --shell /bin/false "tempo"
fi

# Create and assign permissions for default storage
mkdir /var/tempo
Comment thread
mdisibio marked this conversation as resolved.
Outdated
chown tempo /var/tempo

# rhel/centos7 cannot use ExecStartPre=+ to specify the pre start should be run as root
# even if you want your service to run as non root.
if [ "${systemd_version}" -lt 231 ]; then
Expand Down
2 changes: 1 addition & 1 deletion tools/packaging/verify-deb-install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ cat <<EOF | docker exec --interactive "${image}" sh
# Install tempo and check it's running
dpkg -i ${dir}/dist/tempo*_amd64.deb
[ "\$(systemctl is-active tempo)" = "active" ] || (echo "tempo is inactive" && exit 1)

# Wait for tempo to be ready. The script is cat-ed because it is passed to docker exec
apt update && apt install -y curl
$(cat ${dir}/tools/packaging/wait-for-ready.sh)
Expand Down
2 changes: 1 addition & 1 deletion tools/packaging/verify-rpm-install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ cat <<EOF | docker exec --interactive "${image}" sh
# Import the Grafana GPG key
rpm --import https://packages.grafana.com/gpg.key

# Install loki and check it's running
# Install tempo and check it's running
rpm -i ${dir}/dist/tempo*_amd64.rpm
[ "\$(systemctl is-active tempo)" = "active" ] || (echo "tempo is inactive" && exit 1)

Expand Down