|
Lines 84-90
generate_config_file() {
Link Here
|
| 84 |
touch "$2" |
84 |
touch "$2" |
| 85 |
chown "root:$username" "$2" |
85 |
chown "root:$username" "$2" |
| 86 |
chmod 0640 "$2" |
86 |
chmod 0640 "$2" |
| 87 |
sed -e "s/__KOHASITE__/$name/g" \ |
87 |
sed -e "s/__KOHA_CONF_DIR__/\/etc\/koha\/sites\/$name/g" \ |
|
|
88 |
-e "s/__KOHASITE__/$name/g" \ |
| 88 |
-e "s/__OPACPORT__/$OPACPORT/g" \ |
89 |
-e "s/__OPACPORT__/$OPACPORT/g" \ |
| 89 |
-e "s/__INTRAPORT__/$INTRAPORT/g" \ |
90 |
-e "s/__INTRAPORT__/$INTRAPORT/g" \ |
| 90 |
-e "s/__OPACSERVER__/$opacdomain/g" \ |
91 |
-e "s/__OPACSERVER__/$opacdomain/g" \ |
|
Lines 110-115
generate_config_file() {
Link Here
|
| 110 |
-e "s/__UNIXUSER__/$username/g" \ |
111 |
-e "s/__UNIXUSER__/$username/g" \ |
| 111 |
-e "s/__UNIXGROUP__/$username/g" \ |
112 |
-e "s/__UNIXGROUP__/$username/g" \ |
| 112 |
-e "s#__UPLOAD_PATH__#$UPLOAD_PATH#g" \ |
113 |
-e "s#__UPLOAD_PATH__#$UPLOAD_PATH#g" \ |
|
|
114 |
-e "s/__LOG_DIR__/\/var\/log\/koha\/$name/g" \ |
| 113 |
-e "s/__PLUGINS_DIR__/\/var\/lib\/koha\/$name\/plugins/g" \ |
115 |
-e "s/__PLUGINS_DIR__/\/var\/lib\/koha\/$name\/plugins/g" \ |
| 114 |
-e "s/__MEMCACHED_NAMESPACE__/$MEMCACHED_NAMESPACE/g" \ |
116 |
-e "s/__MEMCACHED_NAMESPACE__/$MEMCACHED_NAMESPACE/g" \ |
| 115 |
-e "s/__MEMCACHED_SERVERS__/$MEMCACHED_SERVERS/g" \ |
117 |
-e "s/__MEMCACHED_SERVERS__/$MEMCACHED_SERVERS/g" \ |