Commit 27c05058 authored by telyn's avatar telyn
Browse files

fix assignments in postinsts

parent dd3f801c
...@@ -26,8 +26,8 @@ monit_dir="/etc/symbiosis/monit.d" ...@@ -26,8 +26,8 @@ monit_dir="/etc/symbiosis/monit.d"
mkdir -p "$monit_dir" mkdir -p "$monit_dir"
for i in incrond; do for i in incrond; do
monit_script = "/usr/share/symbiosis/monit/checks/$i" monit_script="/usr/share/symbiosis/monit/checks/$i"
link_target = "$monit_dir/$i" link_target="$monit_dir/$i"
if [ -x "$monit_script" ] && [ ! -e "$link_target" ]; then if [ -x "$monit_script" ] && [ ! -e "$link_target" ]; then
echo "I: Adding symlink for Symbiosis Monit script for $i" echo "I: Adding symlink for Symbiosis Monit script for $i"
......
...@@ -83,8 +83,8 @@ monit_dir="/etc/symbiosis/monit.d" ...@@ -83,8 +83,8 @@ monit_dir="/etc/symbiosis/monit.d"
mkdir -p "$monit_dir" mkdir -p "$monit_dir"
for i in pure-ftpd; do for i in pure-ftpd; do
monit_script = "/usr/share/symbiosis/monit/checks/$i" monit_script="/usr/share/symbiosis/monit/checks/$i"
link_target = "$monit_dir/$i" link_target="$monit_dir/$i"
if [ -x "$monit_script" ] && [ ! -e "$link_target" ]; then if [ -x "$monit_script" ] && [ ! -e "$link_target" ]; then
echo "I: Adding symlink for Symbiosis Monit script for $i" echo "I: Adding symlink for Symbiosis Monit script for $i"
......
...@@ -82,8 +82,8 @@ monit_dir="/etc/symbiosis/monit.d" ...@@ -82,8 +82,8 @@ monit_dir="/etc/symbiosis/monit.d"
mkdir -p "$monit_dir" mkdir -p "$monit_dir"
for i in apache2; do for i in apache2; do
monit_script = "/usr/share/symbiosis/monit/checks/$i" monit_script="/usr/share/symbiosis/monit/checks/$i"
link_target = "$monit_dir/$i" link_target="$monit_dir/$i"
if [ -x "$monit_script" ] && [ ! -e "$link_target" ]; then if [ -x "$monit_script" ] && [ ! -e "$link_target" ]; then
echo "I: Adding symlink for Symbiosis Monit script for $i" echo "I: Adding symlink for Symbiosis Monit script for $i"
......
...@@ -54,8 +54,8 @@ monit_dir="/etc/symbiosis/monit.d" ...@@ -54,8 +54,8 @@ monit_dir="/etc/symbiosis/monit.d"
mkdir -p "$monit_dir" mkdir -p "$monit_dir"
for i in cron sshd; do for i in cron sshd; do
monit_script = "/usr/share/symbiosis/monit/checks/$i" monit_script="/usr/share/symbiosis/monit/checks/$i"
link_target = "$monit_dir/$i" link_target="$monit_dir/$i"
if [ -x "$monit_script" ] && [ ! -e "$link_target" ]; then if [ -x "$monit_script" ] && [ ! -e "$link_target" ]; then
echo "I: Adding symlink for Symbiosis Monit script for $i" echo "I: Adding symlink for Symbiosis Monit script for $i"
......
...@@ -19,8 +19,8 @@ monit_dir="/etc/symbiosis/monit.d" ...@@ -19,8 +19,8 @@ monit_dir="/etc/symbiosis/monit.d"
mkdir -p "$monit_dir" mkdir -p "$monit_dir"
for i in mysqld; do for i in mysqld; do
monit_script = "/usr/share/symbiosis/monit/checks/$i" monit_script="/usr/share/symbiosis/monit/checks/$i"
link_target = "$monit_dir/$i" link_target="$monit_dir/$i"
if [ -x "$monit_script" ] && [ ! -e "$link_target" ]; then if [ -x "$monit_script" ] && [ ! -e "$link_target" ]; then
echo "I: Adding symlink for Symbiosis Monit script for $i" echo "I: Adding symlink for Symbiosis Monit script for $i"
......
...@@ -50,8 +50,8 @@ monit_dir="/etc/symbiosis/monit.d" ...@@ -50,8 +50,8 @@ monit_dir="/etc/symbiosis/monit.d"
mkdir -p "$monit_dir" mkdir -p "$monit_dir"
for i in prosody; do for i in prosody; do
monit_script = "/usr/share/symbiosis/monit/checks/$i" monit_script="/usr/share/symbiosis/monit/checks/$i"
link_target = "$monit_dir/$i" link_target="$monit_dir/$i"
if [ -x "$monit_script" ] && [ ! -e "$link_target" ]; then if [ -x "$monit_script" ] && [ ! -e "$link_target" ]; then
echo "I: Adding symlink for Symbiosis Monit script for $i" echo "I: Adding symlink for Symbiosis Monit script for $i"
......
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