Install portal-app-manager locally and reflect its usage

This commit is contained in:
Disassembler 2017-12-04 17:38:48 +01:00
parent e150bd5f40
commit b005ff3aec
12 changed files with 15 additions and 14 deletions

View File

@ -99,6 +99,7 @@ cp ${SOURCE_DIR}/basic/etc/nginx/sites-available/default /etc/nginx/sites-availa
sed -i 's|QUIT/30|QUIT/5|' /usr/share/uwsgi/init/specific_daemon
# Copy Portal resources
cp -r ${SOURCE_DIR}/basic/usr/local/bin/portal-app-manager /usr/local/bin/portal-app-manager
cp -r ${SOURCE_DIR}/basic/srv/portal /srv/portal
chown -R www-data:www-data /srv/portal

View File

@ -117,4 +117,4 @@ cp ${SOURCE_DIR}/ckan/srv/ckan/cron-pageviews.sh /srv/ckan/cron-pageviews.sh
cp ${SOURCE_DIR}/ckan/etc/cron.d/ckan /etc/cron.d/ckan
# Add portal application definition
${SOURCE_DIR}/basic/portal-app-manager.py ckan "https://{host}:8003/" "${CKAN_ADMIN_USER}" "${CKAN_ADMIN_PWD}"
portal-app-manager ckan "https://{host}:8003/" "${CKAN_ADMIN_USER}" "${CKAN_ADMIN_PWD}"

View File

@ -66,7 +66,7 @@ systemctl start crisiscleanup
systemctl restart nginx
# Add portal application definition
${SOURCE_DIR}/basic/portal-app-manager.py crisis-cleanup "https://{host}:8005/" "${CRISISCLEANUP_ADMIN_EMAIL}" "${CRISISCLEANUP_ADMIN_PWD}"
portal-app-manager crisis-cleanup "https://{host}:8005/" "${CRISISCLEANUP_ADMIN_EMAIL}" "${CRISISCLEANUP_ADMIN_PWD}"
# Uninstall CrisisCleanup compilation dependecies
apt-get -y purge libpq-dev ruby-dev zlib1g-dev

2
cts.sh
View File

@ -62,4 +62,4 @@ systemctl restart uwsgi
systemctl restart nginx
# Add portal application definition
${SOURCE_DIR}/basic/portal-app-manager.py cts "https://{host}:8004/" "${CTS_ADMIN_EMAIL}" "${CTS_ADMIN_PWD}"
portal-app-manager cts "https://{host}:8004/" "${CTS_ADMIN_EMAIL}" "${CTS_ADMIN_PWD}"

View File

@ -76,5 +76,5 @@ ln -s /etc/nginx/sites-available/gnuhealth /etc/nginx/sites-enabled/gnuhealth
systemctl restart nginx
# Add portal application definition
${SOURCE_DIR}/basic/portal-app-manager.py gnuhealth "https://{host}:8006/index.html" admin "${GNUHEALTH_ADMIN_PWD}"
${SOURCE_DIR}/basic/portal-app-manager.py gnuhealth-clients -p clienturl "{host}:8006"
portal-app-manager gnuhealth "https://{host}:8006/index.html" admin "${GNUHEALTH_ADMIN_PWD}"
portal-app-manager gnuhealth-clients -p clienturl "{host}:8006"

View File

@ -60,5 +60,5 @@ systemctl restart nginx
cp ${SOURCE_DIR}/kanboard/etc/cron.d/kanboard /etc/cron.d/kanboard
# Add portal application definition
${SOURCE_DIR}/basic/portal-app-manager.py kanboard "/kanboard/" "${KANBOARD_ADMIN_USER}" "${KANBOARD_ADMIN_PWD}"
${SOURCE_DIR}/basic/portal-app-manager.py kanboard-mobile
portal-app-manager kanboard "/kanboard/" "${KANBOARD_ADMIN_USER}" "${KANBOARD_ADMIN_PWD}"
portal-app-manager kanboard-mobile

View File

@ -77,4 +77,4 @@ ln -s /etc/nginx/sites-available/pandora /etc/nginx/sites-enabled/pandora
systemctl restart nginx
# Add portal application definition
${SOURCE_DIR}/basic/portal-app-manager.py pandora "https://{host}:8001/" "${PANDORA_ADMIN_USER}" "${PANDORA_ADMIN_PWD}"
portal-app-manager pandora "https://{host}:8001/" "${PANDORA_ADMIN_USER}" "${PANDORA_ADMIN_PWD}"

View File

@ -78,7 +78,7 @@ systemctl restart uwsgi
systemctl restart nginx
# Add portal application definition
${SOURCE_DIR}/basic/portal-app-manager.py sahana-eden "/eden/" "${SAHANA_ADMIN_USER}" "${SAHANA_ADMIN_PWD}"
portal-app-manager sahana-eden "/eden/" "${SAHANA_ADMIN_USER}" "${SAHANA_ADMIN_PWD}"
# TODO: Does matplotlib still require MPLCONFIGDIR directory?
# If so, /srv/sahana/wsgihandler.py needs to be modified

View File

@ -78,8 +78,8 @@ systemctl restart uwsgi
systemctl restart nginx
# Add portal application definition
${SOURCE_DIR}/basic/portal-app-manager.py sambro "https://{host}:8099/eden/" "${SAMBRO_ADMIN_USER}" "${SAMBRO_ADMIN_PWD}"
${SOURCE_DIR}/basic/portal-app-manager.py sambro-mobile
portal-app-manager sambro "https://{host}:8099/eden/" "${SAMBRO_ADMIN_USER}" "${SAMBRO_ADMIN_PWD}"
portal-app-manager sambro-mobile
# TODO: Does matplotlib still require MPLCONFIGDIR directory?
# If so, /srv/sambro/wsgihandler.py needs to be modified

View File

@ -50,4 +50,4 @@ systemctl restart nginx
cp ${SOURCE_DIR}/seeddms/etc/cron.d/seeddms /etc/cron.d/seeddms
# Add portal application definition
${SOURCE_DIR}/basic/portal-app-manager.py seeddms "/seeddms/" "${SEEDDMS_ADMIN_USER}" "${SEEDDMS_ADMIN_PWD}"
portal-app-manager seeddms "/seeddms/" "${SEEDDMS_ADMIN_USER}" "${SEEDDMS_ADMIN_PWD}"

View File

@ -49,5 +49,5 @@ systemctl restart nginx
cp ${SOURCE_DIR}/ushahidi/etc/cron.d/ushahidi /etc/cron.d/ushahidi
# Add portal application definition
${SOURCE_DIR}/basic/portal-app-manager.py ushahidi "https://{host}:8002/" "${USHAHIDI_ADMIN_USER}" "${USHAHIDI_ADMIN_PWD}"
${SOURCE_DIR}/basic/portal-app-manager.py ushahidi-mobile
portal-app-manager ushahidi "https://{host}:8002/" "${USHAHIDI_ADMIN_USER}" "${USHAHIDI_ADMIN_PWD}"
portal-app-manager ushahidi-mobile