From 73bc352af763392d92350f9866271ce9f25bd94d Mon Sep 17 00:00:00 2001 From: setiseta Date: Sun, 31 May 2015 14:17:18 +0200 Subject: [PATCH] Fixes --- init.sh | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/init.sh b/init.sh index a4dda48..6d9a9b7 100644 --- a/init.sh +++ b/init.sh @@ -94,12 +94,12 @@ sed -i -e "s/\$config\['db_pass'\] = 'PASSWORD';/\$config\['db_pass'\] = '$DB_PA sed -i -e "s/\$config\['db_user'\] = 'USERNAME';/\$config\['db_user'\] = '$DB_USER';/g" /data/config/config.php sed -i -e "s/\$config\['db_host'\] = '*';/\$config\['db_host'\] = '$DB_HOST';/g" /data/config/config.php sed -i -e "s/\$config\['db_name'\] = 'observium';/\$config\['db_name'\] = '$DB_NAME';/g" /data/config/config.php -sed -i -e "/\$config\['rrd_dir'\].*;/d" /data/config/config.php -sed -i -e "/\$config\['log_file'\].*;/d" /data/config/config.php -sed -i -e "/\$config\['log_dir'\].*;/d" /data/config/config.php -echo "$config['rrd_dir'] = \"/data/rrd\";" >> /data/config/config.php -echo "$config['log_file'] = \"/data/logs/observium.log\";" >> /data/config/config.php -echo "$config['log_dir'] = \"/data/logs\";" >> /data/config/config.php +sed -i "/\$config\['rrd_dir'\].*;/d" /data/config/config.php +sed -i "/\$config\['log_file'\].*;/d" /data/config/config.php +sed -i "/\$config\['log_dir'\].*;/d" /data/config/config.php +echo "\$config['rrd_dir'] = \"/data/rrd\";" >> /data/config/config.php +echo "\$config['log_file'] = \"/data/logs/observium.log\";" >> /data/config/config.php +echo "\$config['log_dir'] = \"/data/logs\";" >> /data/config/config.php prog="mysqladmin -h ${DB_HOST} -P ${DB_PORT} -u ${DB_USER} ${DB_PASS:+-p$DB_PASS} status" timeout=60