View | Details | Raw Unified | Return to bug 10646
Collapse All | Expand All

(-)a/debian/scripts/koha-create (-1 / +20 lines)
Lines 349-354 else Link Here
349
    MEMCACHED_PREFIX=""
349
    MEMCACHED_PREFIX=""
350
fi
350
fi
351
351
352
# Are we root? If not, the mod_rewrite check will fail and be confusing, so
353
# we look into this first.
354
if [[ $UID -ne 0 ]]
355
then
356
    die "This script must be run with root privileges."
357
fi
358
359
# Check that mod_rewrite is installed so we can bail out if it's not.
360
if ! /usr/sbin/apachectl -M 2> /dev/null | grep -q 'rewrite_module'
361
then
362
    cat 1>&2  <<EOM
363
364
Koha requires mod_rewrite to be enabled within Apache in order to run.
365
Typically this can be enabled with:
366
367
    sudo a2enmod rewrite
368
EOM
369
    die
370
fi
371
352
opacdomain="$OPACPREFIX$name$OPACSUFFIX$DOMAIN"
372
opacdomain="$OPACPREFIX$name$OPACSUFFIX$DOMAIN"
353
intradomain="$INTRAPREFIX$name$INTRASUFFIX$DOMAIN"
373
intradomain="$INTRAPREFIX$name$INTRASUFFIX$DOMAIN"
354
374
355
- 

Return to bug 10646