mirror of
https://github.com/pgadmin-org/pgadmin4.git
synced 2025-02-25 18:55:31 -06:00
Don't offer to configure Apache on Redhat platforms as there's nothing to do.
This commit is contained in:
parent
94864104e4
commit
f97d29243d
@ -55,20 +55,18 @@ if [ ${IS_REDHAT} == 1 ]; then
|
|||||||
restorecon -R -v /var/log/pgadmin
|
restorecon -R -v /var/log/pgadmin
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Setup Apache
|
# Setup Apache on Debian/Ubuntu
|
||||||
read -p "We can now configure the Apache Web server for you. This involves enabling the wsgi module and configuring the pgAdmin 4 application to mount at /pgadmin4. Do you wish to continue (y/n)? " RESPONSE
|
if [ ${IS_DEBIAN} == 1 ]; then
|
||||||
case ${RESPONSE} in
|
read -p "We can now configure the Apache Web server for you. This involves enabling the wsgi module and configuring the pgAdmin 4 application to mount at /pgadmin4. Do you wish to continue (y/n)? " RESPONSE
|
||||||
y|Y )
|
case ${RESPONSE} in
|
||||||
if [ ${IS_REDHAT} == 1 ]; then
|
y|Y )
|
||||||
# TODO
|
|
||||||
true
|
|
||||||
else
|
|
||||||
a2enmod wsgi 1> /dev/null
|
a2enmod wsgi 1> /dev/null
|
||||||
a2enconf pgadmin4 1> /dev/null
|
a2enconf pgadmin4 1> /dev/null
|
||||||
fi;;
|
;;
|
||||||
* )
|
* )
|
||||||
exit 1;;
|
exit 1;;
|
||||||
esac
|
esac
|
||||||
|
fi
|
||||||
|
|
||||||
APACHE_STATUS=`ps cax | grep ${APACHE}`
|
APACHE_STATUS=`ps cax | grep ${APACHE}`
|
||||||
if [ $? -eq 0 ]; then
|
if [ $? -eq 0 ]; then
|
||||||
|
Loading…
Reference in New Issue
Block a user