@@ -, +, @@ identifier] by replacing $instance by instance. by replacing the slash in the sed line by a #. This makes sed not stumble over the slashes in the upload path. the storage of temporary uploads in /tmp or similar). --- debian/docs/koha-create.xml | 2 +- debian/scripts/koha-create | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) --- a/debian/docs/koha-create.xml +++ a/debian/docs/koha-create.xml @@ -171,7 +171,7 @@ - Specifiy a for storing the instance's uploaded files. + Specify a for storing the permanently uploaded files of the instance. It defaults to /var/lib/koha/instance/uploads. --- a/debian/scripts/koha-create +++ a/debian/scripts/koha-create @@ -109,7 +109,7 @@ generate_config_file() { -e "s/__DB_PASS__/$mysqlpwd/g" \ -e "s/__UNIXUSER__/$username/g" \ -e "s/__UNIXGROUP__/$username/g" \ - -e "s/__UPLOAD_PATH__/$UPLOAD_PATH/g" \ + -e "s#__UPLOAD_PATH__#$UPLOAD_PATH#g" \ -e "s/__PLUGINS_DIR__/\/var\/lib\/koha\/$name\/plugins/g" \ -e "s/__MEMCACHED_NAMESPACE__/$MEMCACHED_NAMESPACE/g" \ -e "s/__MEMCACHED_SERVERS__/$MEMCACHED_SERVERS/g" \ @@ -291,7 +291,7 @@ set_memcached() set_upload_path() { - local $instance="$1" + local instance="$1" if [ "$CLO_UPLOAD_PATH" != "" ]; then UPLOAD_PATH=$CLO_UPLOAD_PATH --