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

(-)a/debian/scripts/koha-create (-10 / +7 lines)
Lines 30-43 die() { Link Here
30
    exit 1
30
    exit 1
31
}
31
}
32
32
33
# UPPER CASE VARIABLES - from configfile or default value
34
# lower case variables - generated within this script
33
generate_config_file() {
35
generate_config_file() {
34
    touch "$2"
36
    touch "$2"
35
    chown "root:$username" "$2"
37
    chown "root:$username" "$2"
36
    chmod 0640 "$2"
38
    chmod 0640 "$2"
37
    sed -e "s/__KOHASITE__/$name/g" \
39
    sed -e "s/__KOHASITE__/$name/g" \
38
        -e "s/__OPACPORT__/80/g" \
40
        -e "s/__OPACPORT__/$OPACPORT/g" \
39
        -e "s/__INTRAPORT__/$INTRAPORT/g" \
41
        -e "s/__INTRAPORT__/$INTRAPORT/g" \
40
        -e "s/__OPACSERVER__/$domain/g" \
42
        -e "s/__OPACSERVER__/$opacdomain/g" \
41
        -e "s/__INTRASERVER__/$intradomain/g" \
43
        -e "s/__INTRASERVER__/$intradomain/g" \
42
        -e "s/__ZEBRA_PASS__/$zebrapwd/g" \
44
        -e "s/__ZEBRA_PASS__/$zebrapwd/g" \
43
        -e "s/__ZEBRA_MARC_FORMAT__/$ZEBRA_MARC_FORMAT/g" \
45
        -e "s/__ZEBRA_MARC_FORMAT__/$ZEBRA_MARC_FORMAT/g" \
Lines 73-78 getinstancemysqldatabase() { Link Here
73
75
74
# Set defaults and read config file, if it exists.
76
# Set defaults and read config file, if it exists.
75
DOMAIN=""
77
DOMAIN=""
78
OPACPORT="80"
76
INTRAPORT="8080"
79
INTRAPORT="8080"
77
INTRAPREFIX=""
80
INTRAPREFIX=""
78
INTRASUFFIX=""
81
INTRASUFFIX=""
Lines 145-157 fi Link Here
145
148
146
name="$1"
149
name="$1"
147
150
148
domain="$name$DOMAIN"
151
opacdomain="$name$DOMAIN"
149
if [ "$INTRAPORT" = 80 ] || [ "$INTRAPORT" = "" ]
152
intradomain="$INTRAPREFIX$name$INTRASUFFIX$DOMAIN"
150
then
151
    intradomain="$INTRAPREFIX$name$INTRASUFFIX$DOMAIN"
152
else
153
    intradomain="$INTRAPREFIX$name$INTRASUFFIX$DOMAIN:$INTRAPORT"
154
fi
155
153
156
154
157
mysqldb="koha_$name"
155
mysqldb="koha_$name"
158
- 

Return to bug 6913