Permalink
Browse files

Fix userfiles ownership

  • Loading branch information...
NEMS Linux
NEMS Linux committed Feb 10, 2019
1 parent f80ce3e commit 342b148568283011522da9639a882729287f1ea1
Showing with 3 additions and 0 deletions.
  1. +3 −0 fixes.sh
@@ -293,6 +293,9 @@ if (( $(awk 'BEGIN {print ("'$ver'" >= "'1.5'")}') )); then
# Give Adagios access to socket
/bin/sed -i -- 's,livestatus_path = None,livestatus_path = "/usr/local/nagios/var/rw/live.sock",g' /var/www/adagios/settings.py

# Ensure ownership of nems-www is set to the apache2 user
chown -R www-data:www-data /var/www/html

# Fix logs for Nagios (in particular, this fixes Adagios history)
if [[ ! -d /var/log/nagios/archives ]]; then
mkdir /var/log/nagios/archives

0 comments on commit 342b148

Please sign in to comment.