| Sean Dague | e263c82 | 2014-12-05 14:25:28 -0500 | [diff] [blame] | 1 | #!/bin/bash | 
|  | 2 | # | 
| zhang-hare | d98a5d0 | 2013-06-21 18:18:02 +0800 | [diff] [blame] | 3 | # lib/apache | 
|  | 4 | # Functions to control configuration and operation of apache web server | 
|  | 5 |  | 
|  | 6 | # Dependencies: | 
| Adam Spiers | 6a5aa7c | 2013-10-24 11:27:02 +0100 | [diff] [blame] | 7 | # | 
|  | 8 | # - ``functions`` file | 
| Dean Troyer | d8864fe | 2014-02-17 11:00:42 -0600 | [diff] [blame] | 9 | # - ``STACK_USER`` must be defined | 
|  | 10 | # | 
| Stephan Renatus | e578eff | 2013-11-19 13:31:04 +0100 | [diff] [blame] | 11 | # lib/apache exports the following functions: | 
|  | 12 | # | 
| Adam Spiers | 6a5aa7c | 2013-10-24 11:27:02 +0100 | [diff] [blame] | 13 | # - install_apache_wsgi | 
| Gabriel Assis Bezerra | a688bc6 | 2014-05-27 20:58:22 +0000 | [diff] [blame] | 14 | # - apache_site_config_for | 
| Adam Spiers | 6a5aa7c | 2013-10-24 11:27:02 +0100 | [diff] [blame] | 15 | # - enable_apache_site | 
|  | 16 | # - disable_apache_site | 
|  | 17 | # - start_apache_server | 
|  | 18 | # - stop_apache_server | 
|  | 19 | # - restart_apache_server | 
| zhang-hare | d98a5d0 | 2013-06-21 18:18:02 +0800 | [diff] [blame] | 20 |  | 
|  | 21 | # Save trace setting | 
| Ian Wienand | 523f488 | 2015-10-13 11:03:03 +1100 | [diff] [blame] | 22 | _XTRACE_LIB_APACHE=$(set +o | grep xtrace) | 
| zhang-hare | d98a5d0 | 2013-06-21 18:18:02 +0800 | [diff] [blame] | 23 | set +o xtrace | 
|  | 24 |  | 
|  | 25 | # Allow overriding the default Apache user and group, default to | 
|  | 26 | # current user and his default group. | 
| Stephan Renatus | e578eff | 2013-11-19 13:31:04 +0100 | [diff] [blame] | 27 | APACHE_USER=${APACHE_USER:-$STACK_USER} | 
| zhang-hare | d98a5d0 | 2013-06-21 18:18:02 +0800 | [diff] [blame] | 28 | APACHE_GROUP=${APACHE_GROUP:-$(id -gn $APACHE_USER)} | 
|  | 29 |  | 
|  | 30 |  | 
|  | 31 | # Set up apache name and configuration directory | 
| Clark Boylan | cfb9f05 | 2016-11-29 10:43:05 -0800 | [diff] [blame] | 32 | # Note that APACHE_CONF_DIR is really more accurately apache's vhost | 
|  | 33 | # configuration dir but we can't just change this because public interfaces. | 
| zhang-hare | d98a5d0 | 2013-06-21 18:18:02 +0800 | [diff] [blame] | 34 | if is_ubuntu; then | 
|  | 35 | APACHE_NAME=apache2 | 
| Dean Troyer | 444a8d5 | 2014-06-06 16:36:52 -0500 | [diff] [blame] | 36 | APACHE_CONF_DIR=${APACHE_CONF_DIR:-/etc/$APACHE_NAME/sites-available} | 
| Clark Boylan | cfb9f05 | 2016-11-29 10:43:05 -0800 | [diff] [blame] | 37 | APACHE_SETTINGS_DIR=${APACHE_SETTINGS_DIR:-/etc/$APACHE_NAME/conf-enabled} | 
| zhang-hare | d98a5d0 | 2013-06-21 18:18:02 +0800 | [diff] [blame] | 38 | elif is_fedora; then | 
|  | 39 | APACHE_NAME=httpd | 
| Dean Troyer | 444a8d5 | 2014-06-06 16:36:52 -0500 | [diff] [blame] | 40 | APACHE_CONF_DIR=${APACHE_CONF_DIR:-/etc/$APACHE_NAME/conf.d} | 
| Clark Boylan | cfb9f05 | 2016-11-29 10:43:05 -0800 | [diff] [blame] | 41 | APACHE_SETTINGS_DIR=${APACHE_SETTINGS_DIR:-/etc/$APACHE_NAME/conf.d} | 
| zhang-hare | d98a5d0 | 2013-06-21 18:18:02 +0800 | [diff] [blame] | 42 | elif is_suse; then | 
|  | 43 | APACHE_NAME=apache2 | 
| Dean Troyer | 444a8d5 | 2014-06-06 16:36:52 -0500 | [diff] [blame] | 44 | APACHE_CONF_DIR=${APACHE_CONF_DIR:-/etc/$APACHE_NAME/vhosts.d} | 
| Clark Boylan | cfb9f05 | 2016-11-29 10:43:05 -0800 | [diff] [blame] | 45 | APACHE_SETTINGS_DIR=${APACHE_SETTINGS_DIR:-/etc/$APACHE_NAME/conf.d} | 
| zhang-hare | d98a5d0 | 2013-06-21 18:18:02 +0800 | [diff] [blame] | 46 | fi | 
| Clark Boylan | 66ce5c2 | 2016-10-05 12:11:05 -0700 | [diff] [blame] | 47 | APACHE_LOG_DIR="/var/log/${APACHE_NAME}" | 
| zhang-hare | d98a5d0 | 2013-06-21 18:18:02 +0800 | [diff] [blame] | 48 |  | 
|  | 49 | # Functions | 
|  | 50 | # --------- | 
| Gregory Haynes | 4b49e40 | 2016-08-31 18:19:51 -0700 | [diff] [blame] | 51 |  | 
|  | 52 | # Enable apache mod and restart apache if it isn't already enabled. | 
|  | 53 | function enable_apache_mod { | 
|  | 54 | local mod=$1 | 
|  | 55 | # Apache installation, because we mark it NOPRIME | 
| Clark Boylan | 35649ae | 2017-05-27 17:52:55 -0700 | [diff] [blame] | 56 | if is_ubuntu; then | 
|  | 57 | # Skip mod_version as it is not a valid mod to enable | 
|  | 58 | # on debuntu, instead it is built in. | 
|  | 59 | if [[ "$mod" != "version" ]] && ! a2query -m $mod ; then | 
|  | 60 | sudo a2enmod $mod | 
|  | 61 | restart_apache_server | 
|  | 62 | fi | 
|  | 63 | elif is_suse; then | 
|  | 64 | if ! a2enmod -q $mod ; then | 
| Gregory Haynes | 4b49e40 | 2016-08-31 18:19:51 -0700 | [diff] [blame] | 65 | sudo a2enmod $mod | 
|  | 66 | restart_apache_server | 
|  | 67 | fi | 
|  | 68 | elif is_fedora; then | 
|  | 69 | # pass | 
|  | 70 | true | 
|  | 71 | else | 
|  | 72 | exit_distro_not_supported "apache enable mod" | 
|  | 73 | fi | 
|  | 74 | } | 
|  | 75 |  | 
| Sean Dague | 604e598 | 2017-04-13 13:28:12 -0400 | [diff] [blame] | 76 | # NOTE(sdague): Install uwsgi including apache module, we need to get | 
|  | 77 | # to 2.0.6+ to get a working mod_proxy_uwsgi. We can probably build a | 
|  | 78 | # check for that and do it differently for different platforms. | 
|  | 79 | function install_apache_uwsgi { | 
|  | 80 | local apxs="apxs2" | 
|  | 81 | if is_fedora; then | 
|  | 82 | apxs="apxs" | 
|  | 83 | fi | 
|  | 84 |  | 
|  | 85 | # Ubuntu xenial is back level on uwsgi so the proxy doesn't | 
|  | 86 | # actually work. Hence we have to build from source for now. | 
|  | 87 | # | 
|  | 88 | # Centos 7 actually has the module in epel, but there was a big | 
|  | 89 | # push to disable epel by default. As such, compile from source | 
|  | 90 | # there as well. | 
|  | 91 |  | 
|  | 92 | local dir | 
|  | 93 | dir=$(mktemp -d) | 
|  | 94 | pushd $dir | 
|  | 95 | pip_install uwsgi | 
|  | 96 | pip download uwsgi -c $REQUIREMENTS_DIR/upper-constraints.txt | 
|  | 97 | local uwsgi | 
|  | 98 | uwsgi=$(ls uwsgi*) | 
|  | 99 | tar xvf $uwsgi | 
|  | 100 | cd uwsgi*/apache2 | 
|  | 101 | sudo $apxs -i -c mod_proxy_uwsgi.c | 
|  | 102 | popd | 
|  | 103 | # delete the temp directory | 
|  | 104 | sudo rm -rf $dir | 
|  | 105 |  | 
| Clark Boylan | 35649ae | 2017-05-27 17:52:55 -0700 | [diff] [blame] | 106 | if is_ubuntu || is_suse ; then | 
| Sean Dague | 604e598 | 2017-04-13 13:28:12 -0400 | [diff] [blame] | 107 | # we've got to enable proxy and proxy_uwsgi for this to work | 
|  | 108 | sudo a2enmod proxy | 
|  | 109 | sudo a2enmod proxy_uwsgi | 
|  | 110 | elif is_fedora; then | 
|  | 111 | # redhat is missing a nice way to turn on/off modules | 
|  | 112 | echo "LoadModule proxy_uwsgi_module modules/mod_proxy_uwsgi.so" \ | 
|  | 113 | | sudo tee /etc/httpd/conf.modules.d/02-proxy-uwsgi.conf | 
|  | 114 | fi | 
|  | 115 | restart_apache_server | 
|  | 116 | } | 
|  | 117 |  | 
| zhang-hare | d98a5d0 | 2013-06-21 18:18:02 +0800 | [diff] [blame] | 118 | # install_apache_wsgi() - Install Apache server and wsgi module | 
| Ian Wienand | aee18c7 | 2014-02-21 15:35:08 +1100 | [diff] [blame] | 119 | function install_apache_wsgi { | 
| zhang-hare | d98a5d0 | 2013-06-21 18:18:02 +0800 | [diff] [blame] | 120 | # Apache installation, because we mark it NOPRIME | 
|  | 121 | if is_ubuntu; then | 
|  | 122 | # Install apache2, which is NOPRIME'd | 
| Davanum Srinivas | afa8a00 | 2016-12-19 09:51:01 -0500 | [diff] [blame] | 123 | install_package apache2 | 
|  | 124 | if python3_enabled; then | 
|  | 125 | if is_package_installed libapache2-mod-wsgi; then | 
|  | 126 | uninstall_package libapache2-mod-wsgi | 
|  | 127 | fi | 
|  | 128 | install_package libapache2-mod-wsgi-py3 | 
|  | 129 | else | 
|  | 130 | install_package libapache2-mod-wsgi | 
|  | 131 | fi | 
| zhang-hare | d98a5d0 | 2013-06-21 18:18:02 +0800 | [diff] [blame] | 132 | elif is_fedora; then | 
|  | 133 | sudo rm -f /etc/httpd/conf.d/000-* | 
|  | 134 | install_package httpd mod_wsgi | 
|  | 135 | elif is_suse; then | 
|  | 136 | install_package apache2 apache2-mod_wsgi | 
|  | 137 | else | 
| Gregory Haynes | 4b49e40 | 2016-08-31 18:19:51 -0700 | [diff] [blame] | 138 | exit_distro_not_supported "apache wsgi installation" | 
| zhang-hare | d98a5d0 | 2013-06-21 18:18:02 +0800 | [diff] [blame] | 139 | fi | 
| Gregory Haynes | 4b49e40 | 2016-08-31 18:19:51 -0700 | [diff] [blame] | 140 | # WSGI isn't enabled by default, enable it | 
|  | 141 | enable_apache_mod wsgi | 
| Morgan Fainberg | d074dc7 | 2014-06-24 21:33:39 -0700 | [diff] [blame] | 142 | } | 
|  | 143 |  | 
| Gabriel Assis Bezerra | a688bc6 | 2014-05-27 20:58:22 +0000 | [diff] [blame] | 144 | # apache_site_config_for() - The filename of the site's configuration file. | 
|  | 145 | # This function uses the global variables APACHE_NAME and APACHE_CONF_DIR. | 
|  | 146 | # | 
| Sean Dague | 8f8b274 | 2017-04-13 09:34:12 -0400 | [diff] [blame] | 147 | # On Ubuntu 14.04+, the site configuration file must have a .conf suffix for a2ensite and a2dissite to | 
| Gabriel Assis Bezerra | a688bc6 | 2014-05-27 20:58:22 +0000 | [diff] [blame] | 148 | # recognise it. a2ensite and a2dissite ignore the .conf suffix used as parameter. The default sites' | 
|  | 149 | # files are 000-default.conf and default-ssl.conf. | 
|  | 150 | # | 
| Ralf Haferkamp | 633a129 | 2014-06-16 14:10:05 +0200 | [diff] [blame] | 151 | # On Fedora and openSUSE, any file in /etc/httpd/conf.d/ whose name ends with .conf is enabled. | 
| Gabriel Assis Bezerra | a688bc6 | 2014-05-27 20:58:22 +0000 | [diff] [blame] | 152 | # | 
|  | 153 | # On RHEL and CentOS, things should hopefully work as in Fedora. | 
|  | 154 | # | 
|  | 155 | # The table below summarizes what should happen on each distribution: | 
|  | 156 | # +----------------------+--------------------+--------------------------+--------------------------+ | 
|  | 157 | # | Distribution         | File name          | Site enabling command    | Site disabling command   | | 
|  | 158 | # +----------------------+--------------------+--------------------------+--------------------------+ | 
| Gabriel Assis Bezerra | a688bc6 | 2014-05-27 20:58:22 +0000 | [diff] [blame] | 159 | # | Ubuntu 14.04         | site.conf          | a2ensite site            | a2dissite site           | | 
|  | 160 | # | Fedora, RHEL, CentOS | site.conf.disabled | mv site.conf{.disabled,} | mv site.conf{,.disabled} | | 
|  | 161 | # +----------------------+--------------------+--------------------------+--------------------------+ | 
|  | 162 | function apache_site_config_for { | 
|  | 163 | local site=$@ | 
|  | 164 | if is_ubuntu; then | 
| Sean Dague | 8f8b274 | 2017-04-13 09:34:12 -0400 | [diff] [blame] | 165 | # Ubuntu 14.04 - Apache 2.4 | 
|  | 166 | echo $APACHE_CONF_DIR/${site}.conf | 
| Ralf Haferkamp | 633a129 | 2014-06-16 14:10:05 +0200 | [diff] [blame] | 167 | elif is_fedora || is_suse; then | 
| Gabriel Assis Bezerra | a688bc6 | 2014-05-27 20:58:22 +0000 | [diff] [blame] | 168 | # fedora conf.d is only imported if it ends with .conf so this is approx the same | 
| Dean Troyer | 444a8d5 | 2014-06-06 16:36:52 -0500 | [diff] [blame] | 169 | local enabled_site_file="$APACHE_CONF_DIR/${site}.conf" | 
| Gabriel Assis Bezerra | a688bc6 | 2014-05-27 20:58:22 +0000 | [diff] [blame] | 170 | if [ -f $enabled_site_file ]; then | 
|  | 171 | echo ${enabled_site_file} | 
|  | 172 | else | 
|  | 173 | echo ${enabled_site_file}.disabled | 
|  | 174 | fi | 
|  | 175 | fi | 
|  | 176 | } | 
|  | 177 |  | 
| Jamie Lennox | 5470701 | 2013-09-17 12:07:48 +1000 | [diff] [blame] | 178 | # enable_apache_site() - Enable a particular apache site | 
| Ian Wienand | aee18c7 | 2014-02-21 15:35:08 +1100 | [diff] [blame] | 179 | function enable_apache_site { | 
| Jamie Lennox | 5470701 | 2013-09-17 12:07:48 +1000 | [diff] [blame] | 180 | local site=$@ | 
| Clark Boylan | 35649ae | 2017-05-27 17:52:55 -0700 | [diff] [blame] | 181 | # Many of our sites use mod version. Just enable it. | 
|  | 182 | enable_apache_mod version | 
| Jamie Lennox | 5470701 | 2013-09-17 12:07:48 +1000 | [diff] [blame] | 183 | if is_ubuntu; then | 
|  | 184 | sudo a2ensite ${site} | 
| Ralf Haferkamp | 633a129 | 2014-06-16 14:10:05 +0200 | [diff] [blame] | 185 | elif is_fedora || is_suse; then | 
| Dean Troyer | 444a8d5 | 2014-06-06 16:36:52 -0500 | [diff] [blame] | 186 | local enabled_site_file="$APACHE_CONF_DIR/${site}.conf" | 
|  | 187 | # Do nothing if site already enabled or no site config exists | 
|  | 188 | if [[ -f ${enabled_site_file}.disabled ]] && [[ ! -f ${enabled_site_file} ]]; then | 
|  | 189 | sudo mv ${enabled_site_file}.disabled ${enabled_site_file} | 
|  | 190 | fi | 
| Jamie Lennox | 5470701 | 2013-09-17 12:07:48 +1000 | [diff] [blame] | 191 | fi | 
|  | 192 | } | 
|  | 193 |  | 
|  | 194 | # disable_apache_site() - Disable a particular apache site | 
| Ian Wienand | aee18c7 | 2014-02-21 15:35:08 +1100 | [diff] [blame] | 195 | function disable_apache_site { | 
| Jamie Lennox | 5470701 | 2013-09-17 12:07:48 +1000 | [diff] [blame] | 196 | local site=$@ | 
|  | 197 | if is_ubuntu; then | 
| Chris Dent | 2fcdaac | 2017-04-18 16:54:12 +0100 | [diff] [blame] | 198 | sudo a2dissite ${site} || true | 
| Ralf Haferkamp | 633a129 | 2014-06-16 14:10:05 +0200 | [diff] [blame] | 199 | elif is_fedora || is_suse; then | 
| Dean Troyer | 444a8d5 | 2014-06-06 16:36:52 -0500 | [diff] [blame] | 200 | local enabled_site_file="$APACHE_CONF_DIR/${site}.conf" | 
|  | 201 | # Do nothing if no site config exists | 
|  | 202 | if [[ -f ${enabled_site_file} ]]; then | 
|  | 203 | sudo mv ${enabled_site_file} ${enabled_site_file}.disabled | 
|  | 204 | fi | 
| Jamie Lennox | 5470701 | 2013-09-17 12:07:48 +1000 | [diff] [blame] | 205 | fi | 
|  | 206 | } | 
|  | 207 |  | 
| zhang-hare | d98a5d0 | 2013-06-21 18:18:02 +0800 | [diff] [blame] | 208 | # start_apache_server() - Start running apache server | 
| Ian Wienand | aee18c7 | 2014-02-21 15:35:08 +1100 | [diff] [blame] | 209 | function start_apache_server { | 
| zhang-hare | d98a5d0 | 2013-06-21 18:18:02 +0800 | [diff] [blame] | 210 | start_service $APACHE_NAME | 
|  | 211 | } | 
|  | 212 |  | 
|  | 213 | # stop_apache_server() - Stop running apache server | 
| Ian Wienand | aee18c7 | 2014-02-21 15:35:08 +1100 | [diff] [blame] | 214 | function stop_apache_server { | 
| zhang-hare | d98a5d0 | 2013-06-21 18:18:02 +0800 | [diff] [blame] | 215 | if [ -n "$APACHE_NAME" ]; then | 
|  | 216 | stop_service $APACHE_NAME | 
|  | 217 | else | 
|  | 218 | exit_distro_not_supported "apache configuration" | 
|  | 219 | fi | 
|  | 220 | } | 
|  | 221 |  | 
|  | 222 | # restart_apache_server | 
| Ian Wienand | aee18c7 | 2014-02-21 15:35:08 +1100 | [diff] [blame] | 223 | function restart_apache_server { | 
| Morgan Fainberg | 2df0046 | 2014-07-15 11:06:36 -0700 | [diff] [blame] | 224 | # Apache can be slow to stop, doing an explicit stop, sleep, start helps | 
|  | 225 | # to mitigate issues where apache will claim a port it's listening on is | 
|  | 226 | # still in use and fail to start. | 
| Sean Dague | 2b85cf0 | 2017-04-13 09:02:14 -0400 | [diff] [blame] | 227 | restart_service $APACHE_NAME | 
| zhang-hare | d98a5d0 | 2013-06-21 18:18:02 +0800 | [diff] [blame] | 228 | } | 
|  | 229 |  | 
| Sean Dague | 2f8c88e | 2017-04-13 09:08:39 -0400 | [diff] [blame] | 230 | function write_uwsgi_config { | 
|  | 231 | local file=$1 | 
|  | 232 | local wsgi=$2 | 
|  | 233 | local url=$3 | 
|  | 234 | local http=$4 | 
|  | 235 | local name="" | 
|  | 236 | name=$(basename $wsgi) | 
| rabi | aa26baa | 2017-04-20 10:55:16 +0530 | [diff] [blame] | 237 |  | 
|  | 238 | # create a home for the sockets; note don't use /tmp -- apache has | 
|  | 239 | # a private view of it on some platforms. | 
|  | 240 | local socket_dir='/var/run/uwsgi' | 
|  | 241 | sudo install -d -o $STACK_USER -m 755 $socket_dir | 
|  | 242 | local socket="$socket_dir/${name}.socket" | 
| Sean Dague | 2f8c88e | 2017-04-13 09:08:39 -0400 | [diff] [blame] | 243 |  | 
|  | 244 | # always cleanup given that we are using iniset here | 
|  | 245 | rm -rf $file | 
|  | 246 | iniset "$file" uwsgi wsgi-file "$wsgi" | 
|  | 247 | iniset "$file" uwsgi socket "$socket" | 
|  | 248 | iniset "$file" uwsgi processes $API_WORKERS | 
|  | 249 | # This is running standalone | 
|  | 250 | iniset "$file" uwsgi master true | 
|  | 251 | # Set die-on-term & exit-on-reload so that uwsgi shuts down | 
|  | 252 | iniset "$file" uwsgi die-on-term true | 
|  | 253 | iniset "$file" uwsgi exit-on-reload true | 
|  | 254 | iniset "$file" uwsgi enable-threads true | 
|  | 255 | iniset "$file" uwsgi plugins python | 
|  | 256 | # uwsgi recommends this to prevent thundering herd on accept. | 
|  | 257 | iniset "$file" uwsgi thunder-lock true | 
|  | 258 | # Override the default size for headers from the 4k default. | 
|  | 259 | iniset "$file" uwsgi buffer-size 65535 | 
|  | 260 | # Make sure the client doesn't try to re-use the connection. | 
|  | 261 | iniset "$file" uwsgi add-header "Connection: close" | 
|  | 262 | # This ensures that file descriptors aren't shared between processes. | 
|  | 263 | iniset "$file" uwsgi lazy-apps true | 
|  | 264 | iniset "$file" uwsgi chmod-socket 666 | 
|  | 265 |  | 
|  | 266 | # If we said bind directly to http, then do that and don't start the apache proxy | 
|  | 267 | if [[ -n "$http" ]]; then | 
|  | 268 | iniset "$file" uwsgi http $http | 
|  | 269 | else | 
|  | 270 | local apache_conf="" | 
|  | 271 | apache_conf=$(apache_site_config_for $name) | 
| Sean Dague | 6ed5315 | 2017-04-13 13:33:16 -0400 | [diff] [blame] | 272 | echo "ProxyPass \"${url}\" \"unix:${socket}|uwsgi://uwsgi-uds-${name}/\" retry=0 " | sudo tee $apache_conf | 
| Sean Dague | 2f8c88e | 2017-04-13 09:08:39 -0400 | [diff] [blame] | 273 | enable_apache_site $name | 
| Ian Wienand | f6a2d2c | 2017-04-26 10:50:29 +1000 | [diff] [blame] | 274 | restart_apache_server | 
| Sean Dague | 2f8c88e | 2017-04-13 09:08:39 -0400 | [diff] [blame] | 275 | fi | 
|  | 276 | } | 
|  | 277 |  | 
|  | 278 | function remove_uwsgi_config { | 
|  | 279 | local file=$1 | 
|  | 280 | local wsgi=$2 | 
|  | 281 | local name="" | 
|  | 282 | name=$(basename $wsgi) | 
|  | 283 |  | 
|  | 284 | rm -rf $file | 
|  | 285 | disable_apache_site $name | 
|  | 286 | } | 
|  | 287 |  | 
| zhang-hare | d98a5d0 | 2013-06-21 18:18:02 +0800 | [diff] [blame] | 288 | # Restore xtrace | 
| Ian Wienand | 523f488 | 2015-10-13 11:03:03 +1100 | [diff] [blame] | 289 | $_XTRACE_LIB_APACHE | 
| zhang-hare | d98a5d0 | 2013-06-21 18:18:02 +0800 | [diff] [blame] | 290 |  | 
| Adam Spiers | 6a5aa7c | 2013-10-24 11:27:02 +0100 | [diff] [blame] | 291 | # Tell emacs to use shell-script-mode | 
|  | 292 | ## Local variables: | 
|  | 293 | ## mode: shell-script | 
|  | 294 | ## End: |