Skip to content
Permalink
Browse files

Fix Adagios on Docker and AWS

  • Loading branch information...
NEMS Linux
NEMS Linux committed Aug 24, 2019
1 parent 2da05dd commit 5cb52f87a8c20a2d9e5a154ac7bb71dbbcabf164
Showing with 8 additions and 3 deletions.
  1. +8 −3 build/180-adagios
@@ -7,6 +7,8 @@ if [[ ! -e /var/lib/nagios/ ]]; then
chown -R nagios:nagios /var/lib/nagios/
fi

apt-get install -y python-django python-simplejson libgmp-dev python-dev python-paramiko

# Prepare sudo permissions
if ! grep -q "# Adagios" /etc/sudoers; then
echo '
@@ -68,15 +70,18 @@ chown -R www-data:www-data /var/www/adagios/
cp -f /root/nems/nems-migrator/data/1.5/adagios/templates/403.html /var/www/adagios/templates/
cp -f /root/nems/nems-migrator/data/1.5/adagios/templates/base.html /var/www/adagios/templates/

# Create the working folder for the WSGI daemon
mkdir /var/www/adagios-working
chown nagios:nagios /var/www/adagios-working

cat << EOF > /etc/apache2/conf-available/adagios.conf
WSGISocketPrefix /var/run/apache2/wsgi
WSGIDaemonProcess adagios user=nagios group=nagios processes=1 threads=25 python-path=/var/www/adagios
WSGIDaemonProcess adagios user=nagios home=/var/www/adagios-working group=nagios processes=1 threads=25 python-path=/var/www/adagios
WSGIProcessGroup adagios
WSGIScriptAlias /adagios /var/www/adagios/apache/adagios.wsgi
Alias /adagios/media /var/www/adagios/media
<Location /adagios>
AuthName "Adagios Access"
AuthType Basic

0 comments on commit 5cb52f8

Please sign in to comment.
You can’t perform that action at this time.