mirror of
https://github.com/hanzoai/metrics.git
synced 2026-10-30 20:03:39 +00:00
* added packer build for DigitalOcean Droplets * fixed typo * added packer RELEASE_GUIDE.md, Makefile * Apply suggestions from code review Co-authored-by: Roman Khavronenko <[email protected]> * added corrections amd improvements * added packer link & templating for sed version * fixed typo Co-authored-by: Aliaksandr Valialkin <[email protected]> Co-authored-by: Roman Khavronenko <[email protected]>
15 lines
511 B
Bash
Executable File
15 lines
511 B
Bash
Executable File
#!/bin/sh
|
|
|
|
# Create victoriametrics user
|
|
groupadd -r victoriametrics
|
|
useradd -g victoriametrics -d /var/lib/victoria-metrics-data -s /sbin/nologin --system victoriametrics
|
|
|
|
mkdir -p /var/lib/victoria-metrics-data
|
|
chown -R victoriametrics:victoriametrics /var/lib/victoria-metrics-data
|
|
|
|
rm -rf /var/lib/apt/lists/*
|
|
apt update
|
|
DEBIAN_FRONTEND=noninteractive apt -y full-upgrade
|
|
DEBIAN_FRONTEND=noninteractive apt -y install curl git wget software-properties-common
|
|
rm -rf /var/log/kern.log
|
|
rm -rf /var/log/ufw.log |