forked from ungleich-public/cdist
correct condition -- should check on remote side
This commit is contained in:
parent
f35a1b9cdf
commit
48ed7f1754
1 changed files with 6 additions and 5 deletions
|
@ -18,8 +18,9 @@
|
||||||
# along with cdist. If not, see <http://www.gnu.org/licenses/>.
|
# along with cdist. If not, see <http://www.gnu.org/licenses/>.
|
||||||
|
|
||||||
## "move" user-modified dirs to /etc/xymon to be managed by __xymon_config:
|
## "move" user-modified dirs to /etc/xymon to be managed by __xymon_config:
|
||||||
|
cat <<-EOT
|
||||||
if [ ! -L /usr/lib/xymon/server/ext ]; then
|
if [ ! -L /usr/lib/xymon/server/ext ]; then
|
||||||
echo "mv /usr/lib/xymon/server/ext /etc/xymon"
|
mv /usr/lib/xymon/server/ext /etc/xymon
|
||||||
echo "ln -s /etc/xymon/ext /usr/lib/xymon/server/"
|
ln -s /etc/xymon/ext /usr/lib/xymon/server/
|
||||||
echo "ext-dir moved and symlinked" >> "$__messages_out"
|
|
||||||
fi
|
fi
|
||||||
|
EOT
|
||||||
|
|
Loading…
Reference in a new issue