[Devel] Moved vzstat's stuff under /etc/vz/vzstats/

Igor Podlesny openvz at poige.ru
Sun Apr 28 20:48:17 PDT 2013


-- So it doesn't float around anymore. Encapsulation is a good way
to reduce entropy in general.
---
 vzstats      |    6 +++---
 vzstats.spec |    6 +++---
 2 files changed, 6 insertions(+), 6 deletions(-)

diff --git a/vzstats b/vzstats
index ddf7f04..d53a877 100755
--- a/vzstats
+++ b/vzstats
@@ -1,9 +1,9 @@
 #!/bin/sh
 
-test -f /etc/vz/vzstats-disable && exit 0
+test -f /etc/vz/vzstats/disable && exit 0
 
-. /etc/vz/vzstats.conf
-IDFILE=/etc/vz/.vzstats-uuid
+. /etc/vz/vzstats/conf
+IDFILE=/etc/vz/vzstats/uuid
 VERSION=0.2.1
 CURL='curl -sS --connect-timeout 3'
 
diff --git a/vzstats.spec b/vzstats.spec
index ecd64ee..4b1fb5a 100644
--- a/vzstats.spec
+++ b/vzstats.spec
@@ -25,12 +25,12 @@ make %{?_smp_mflags}
 %install
 make install install-cronjob DESTDIR=%{buildroot}
 # Needed for %ghost in %files section below
-touch %{buildroot}%{_sysconfdir}/vz/.vzstats-uuid
+touch %{buildroot}%{_sysconfdir}/vz/vzstats/uuid
 
 %files
 %{_sbindir}/vzstats
-%config %{_sysconfdir}/vz/vzstats.conf
-%ghost %config(missingok) %{_sysconfdir}/vz/.vzstats-uuid
+%config %{_sysconfdir}/vz/vzstats/conf
+%ghost %config(missingok) %{_sysconfdir}/vz/vzstats/uuid
 %dir %{_libexecdir}/%{name}
 %{_libexecdir}/%{name}/*
 %{_sysconfdir}/cron.monthly/*
-- 
1.7.9.5




More information about the Devel mailing list