diff options
author | crees <crees@FreeBSD.org> | 2013-06-05 02:55:12 +0800 |
---|---|---|
committer | crees <crees@FreeBSD.org> | 2013-06-05 02:55:12 +0800 |
commit | 2cdb93cb6139e2add28053ecaed59bc485aa96ae (patch) | |
tree | aa80e5403fc92d60a243ff34caa874d32896eeae | |
parent | 52b6ecfa0d99b9ed0c118c295ede0a31210baccd (diff) | |
download | freebsd-ports-gnome-2cdb93cb6139e2add28053ecaed59bc485aa96ae.tar.gz freebsd-ports-gnome-2cdb93cb6139e2add28053ecaed59bc485aa96ae.tar.zst freebsd-ports-gnome-2cdb93cb6139e2add28053ecaed59bc485aa96ae.zip |
Move the old rrd files over if present on package install
-rw-r--r-- | sysutils/monitorix/pkg-plist | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sysutils/monitorix/pkg-plist b/sysutils/monitorix/pkg-plist index 90b1fea0e768..e3e760caff82 100644 --- a/sysutils/monitorix/pkg-plist +++ b/sysutils/monitorix/pkg-plist @@ -25,5 +25,5 @@ bin/monitorix @comment rrd files are now kept in /var/db/monitorix, we'll move @comment previous files over for the user @exec [ -d %%DBDIR%% ] || install -d -o %%WWW_OWNER%% -g %%WWW_GROUP%% %%DBDIR%% -@exec [ -f %%DATADIR%%/fs.rrd ] && mv %%DATADIR%%/*.rrd %%DBDIR%% +@exec [ -f %%DATADIR%%/fs.rrd ] && mv %%DATADIR%%/*.rrd %%DBDIR%% || true @unexec rmdir %%DBDIR%% 2>/dev/null || true |