Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- fixup_apache()
- {
- # stop apache2
- echo "csharp: within fixup_apache()"
- echo "csharp: `ps aux | grep -v grep | grep apache`"
- service apache2 stop
- echo "csharp: `ps aux | grep -v grep | grep apache`"
- # keep the bad apache modules away --esi
- for m in deflate mpm_event; do a2dismod -f $m > /dev/null; done;
- for m in expires include proxy proxy_http rewrite ssl xmlent idlchunk mpm_prefork; do a2enmod -f $m > /dev/null; done;
- if [ ! -e "/etc/apache2/ssl" ]
- then
- mkdir /etc/apache2/ssl
- pushd /etc/apache2/ssl
- openssl req -new -x509 -days 365 -nodes -out server.crt -keyout server.key -subj "/CN=$HFQDN"
- popd
- fi
- sed -i "s^APACHE_RUN_USER=www-data^APACHE_RUN_USER=opensrf^g" /etc/apache2/envvars
- # since we're changing the apache run user, we have to chown this directory
- chown opensrf:opensrf /var/lock/apache2
- /usr/sbin/a2dissite 000-default > /dev/null
- /usr/sbin/a2ensite eg.conf > /dev/null
- # start apache2
- service apache2 start
- echo "csharp: `ps aux | grep -v grep | grep apache`"
- }
- fixup_apache
- if [ $STANDALONE -eq 1 ]
- then
- #TODO:take this following line out once it's confirmed it's working without.
- #init_db
- add_eg_db_user
- configure_opensrf_xml
- populate_db
- fi
- echo "csharp: just before fix_openils_perms"
- echo "csharp: `ps aux | grep -v grep | grep apache`"
- /etc/init.d/opensrf stop
- fix_openils_perms
- ldconfig
- /etc/init.d/opensrf start
- echo "csharp: just after ldconfig"
- echo "csharp: `ps aux | grep -v grep | grep apache`"
- if [ $STANDALONE -eq 1 ]
- then
- run_autogen
- echo
- echo "The installation of Evergreen ILS is complete."
- printf "To start using Evergreen browse to :- \nhttp://$(hostname -f) \n$(ifconfig | grep 'inet addr:'| grep -v '127.0.0.1' | cut -d: -f2 | awk '{ print "http://"$1}')\n"
- fi
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement