ncc.zabbix_fbsd_templates
23:b86351df3265
Go to Latest
ncc.zabbix_fbsd_templates/tools/make_dist.sh
.. v1.r202510.1
* Исправлена проблема при наличии в зависимостях отстуствующего в системе пакета
2 src_root="$(dirname
"$(dirname
"$(readlink
-f
"$0")")")"
3 dist_root="$(readlink
-f
"$src_root/../dist")"
6 dist_name="aw.fbsd-mon-helper.tgz"
7 dist_s3_link="s3fs/dist/config/zabbix/freebsd-template/${dist_name}"
10 tar
-cvzf
"${dist_root}/${dist_name}" \
11 --owner
=root
--group
=root
\
16 echo "${dist_root}/${dist_name}"
17 stat
"${dist_root}/${dist_name}"
19 if [ "$(which
minioctl
)" ] && [ -f
"${dist_root}/${dist_name}" ] ; then
20 echo "### PUSH DISTRIBUTION TO FS ###"
21 read -p
"Upload file [y/N]: " _ans
24 minioctl
cp
"${dist_root}/${dist_name}" "$dist_s3_link"
28 echo "WARNING: Answer is '${_ans}', abort uploading"