Commit dd3f801c authored by telyn's avatar telyn
Browse files

Remove conffiles and place them in /usr/share/symbiosis/monit/checks/

parent 516d78c6
...@@ -4,7 +4,7 @@ rule.d usr/share/symbiosis/firewall ...@@ -4,7 +4,7 @@ rule.d usr/share/symbiosis/firewall
action.d usr/share/symbiosis/firewall action.d usr/share/symbiosis/firewall
test.d etc/symbiosis test.d etc/symbiosis
incron.d etc/ incron.d etc/
monit.d etc/symbiosis monit.d/* usr/share/symbiosis/monit/checks/
incoming.d etc/symbiosis/firewall incoming.d etc/symbiosis/firewall
outgoing.d etc/symbiosis/firewall outgoing.d etc/symbiosis/firewall
local.d etc/symbiosis/firewall local.d etc/symbiosis/firewall
......
rm_conffile /etc/symbiosis/monit.d/incrond 2017:0424
...@@ -16,6 +16,23 @@ PREFIX=/etc/symbiosis/firewall ...@@ -16,6 +16,23 @@ PREFIX=/etc/symbiosis/firewall
chown -R admin:admin $PREFIX chown -R admin:admin $PREFIX
#DEBHELPER# #DEBHELPER#
#
# Add symlinks for the monit script
monit_dir="/etc/symbiosis/monit.d"
mkdir -p "$monit_dir"
for i in incrond; do
monit_script = "/usr/share/symbiosis/monit/checks/$i"
link_target = "$monit_dir/$i"
if [ -x "$monit_script" ] && [ ! -e "$link_target" ]; then
echo "I: Adding symlink for Symbiosis Monit script for $i"
ln -s "$monit_script" "$link_target" || true
fi
done
exit 0 exit 0
sbin/* usr/sbin/ sbin/* usr/sbin/
default/* etc/default/ default/* etc/default/
monit.d/* etc/symbiosis/monit.d/ monit.d/* usr/share/symbiosis/monit/checks/
test.d/* etc/symbiosis/test.d/ test.d/* etc/symbiosis/test.d/
patterns.d/* etc/symbiosis/firewall/patterns.d/ patterns.d/* etc/symbiosis/firewall/patterns.d/
lib/* usr/lib/ruby/vendor_ruby/ lib/* usr/lib/ruby/vendor_ruby/
......
rm_conffile /etc/symbiosis/monit.d/pure-authd 2014:1231 rm_conffile /etc/symbiosis/monit.d/pure-authd 2014:1231
rm_conffile /etc/symbiosis/monit.d/pure-ftpd 2017:0424
...@@ -74,10 +74,24 @@ if [ -e /etc/ssl/private/pure-ftpd.pem ] ; then ...@@ -74,10 +74,24 @@ if [ -e /etc/ssl/private/pure-ftpd.pem ] ; then
fi fi
fi fi
#DEBHELPER# #DEBHELPER#
#
# Add symlinks for the monit script
monit_dir="/etc/symbiosis/monit.d"
mkdir -p "$monit_dir"
for i in pure-ftpd; do
monit_script = "/usr/share/symbiosis/monit/checks/$i"
link_target = "$monit_dir/$i"
if [ -x "$monit_script" ] && [ ! -e "$link_target" ]; then
echo "I: Adding symlink for Symbiosis Monit script for $i"
ln -s "$monit_script" "$link_target" || true
fi
done
invoke-rc.d pure-ftpd restart invoke-rc.d pure-ftpd restart
exit 0 exit 0
sbin usr/ sbin usr/
test.d etc/symbiosis/ test.d etc/symbiosis/
apache.d etc/symbiosis/ apache.d etc/symbiosis/
monit.d etc/symbiosis/ monit.d/* usr/share/symbiosis/monit/checks/
bytemark/* usr/share/symbiosis/static/ bytemark/* usr/share/symbiosis/static/
apache2 etc/ apache2 etc/
php etc/ php etc/
rm_conffile /etc/symbiosis/monit.d/apache2 2017:0424
...@@ -75,4 +75,20 @@ symbiosis-httpd-configure --no-reload --verbose ...@@ -75,4 +75,20 @@ symbiosis-httpd-configure --no-reload --verbose
#DEBHELPER# #DEBHELPER#
#
# Add symlinks for the monit script
monit_dir="/etc/symbiosis/monit.d"
mkdir -p "$monit_dir"
for i in apache2; do
monit_script = "/usr/share/symbiosis/monit/checks/$i"
link_target = "$monit_dir/$i"
if [ -x "$monit_script" ] && [ ! -e "$link_target" ]; then
echo "I: Adding symlink for Symbiosis Monit script for $i"
ln -s "$monit_script" "$link_target" || true
fi
done
exit 0 exit 0
rm_conffile /etc/symbiosis/monit.d/cron 2017:0424
rm_conffile /etc/symbiosis/monit.d/sshd 2017:0424
...@@ -46,4 +46,21 @@ fi ...@@ -46,4 +46,21 @@ fi
mkdir -p /var/lib/symbiosis/ mkdir -p /var/lib/symbiosis/
#DEBHELPER# #DEBHELPER#
#
# Add symlinks for the monit script
monit_dir="/etc/symbiosis/monit.d"
mkdir -p "$monit_dir"
for i in cron sshd; do
monit_script = "/usr/share/symbiosis/monit/checks/$i"
link_target = "$monit_dir/$i"
if [ -x "$monit_script" ] && [ ! -e "$link_target" ]; then
echo "I: Adding symlink for Symbiosis Monit script for $i"
ln -s "$monit_script" "$link_target" || true
fi
done
exit 0 exit 0
sbin/symbiosis-monit usr/sbin/ sbin/symbiosis-monit usr/sbin/
monit.d/* etc/symbiosis/monit.d/ monit.d/* usr/share/symbiosis/monit/checks/
templates/* usr/share/symbiosis/monit/ templates/* usr/share/symbiosis/monit/
lib/* usr/lib/ruby/vendor_ruby/ lib/* usr/lib/ruby/vendor_ruby/
test.d/* etc/symbiosis/test.d/ test.d/* etc/symbiosis/test.d/
......
monit.d etc/symbiosis monit.d/* usr/share/symbiosis/monit/checks/
mysql etc mysql etc
rm_conffile /etc/symbiosis/monit.d/mysqld 2017:0424
...@@ -12,6 +12,22 @@ fi ...@@ -12,6 +12,22 @@ fi
#DEBHELPER# #DEBHELPER#
#
# Add symlinks for the monit script
monit_dir="/etc/symbiosis/monit.d"
mkdir -p "$monit_dir"
for i in mysqld; do
monit_script = "/usr/share/symbiosis/monit/checks/$i"
link_target = "$monit_dir/$i"
if [ -x "$monit_script" ] && [ ! -e "$link_target" ]; then
echo "I: Adding symlink for Symbiosis Monit script for $i"
ln -s "$monit_script" "$link_target" || true
fi
done
# #
# Restart mysql just in case the config has been modified. # Restart mysql just in case the config has been modified.
# #
......
monit.d /etc/symbiosis/ monit.d/* /usr/share/symbiosis/monit/checks/
templates.d/* /etc/symbiosis/xmpp.d templates.d/* /etc/symbiosis/xmpp.d
sbin/* /usr/sbin sbin/* /usr/sbin
rm_conffile /etc/symbiosis/monit.d/prosody 2017:0424
...@@ -42,4 +42,21 @@ for i in prosody dovecot; do ...@@ -42,4 +42,21 @@ for i in prosody dovecot; do
done done
#DEBHELPER# #DEBHELPER#
#
# Add symlinks for the monit script
monit_dir="/etc/symbiosis/monit.d"
mkdir -p "$monit_dir"
for i in prosody; do
monit_script = "/usr/share/symbiosis/monit/checks/$i"
link_target = "$monit_dir/$i"
if [ -x "$monit_script" ] && [ ! -e "$link_target" ]; then
echo "I: Adding symlink for Symbiosis Monit script for $i"
ln -s "$monit_script" "$link_target" || true
fi
done
exit 0 exit 0
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment