diff --git a/doc/ADMIN.md b/doc/ADMIN.md index 34a2854..0a46827 100644 --- a/doc/ADMIN.md +++ b/doc/ADMIN.md @@ -2,4 +2,5 @@ To ease the install process and first access, Tiki saves your uploaded files (office documents, images, pdf, etc. attached to wiki pages, forum posts, tracker items, file galleries...) by default in its database. This works perfectly in most cases but it is not the recommended setup if you need to save many thousands of files or more. -In that case, consider switching from "Store to database" to "Store to directory", which you will find in the Configuration Wizard. Please use this preset path directory: `/home/yunohost.app/$app`. You will be able to migrate your currently uploaded files from one to the other. +In that case, consider switching from "Store to database" to "Store to directory", which you will find in the Configuration Wizard. Please use the preset path directory: `/home/yunohost.app/tiki<…>`. You will be able to migrate your currently uploaded files from one to the other. + diff --git a/scripts/install b/scripts/install index 0b3d841..d281e15 100755 --- a/scripts/install +++ b/scripts/install @@ -71,6 +71,10 @@ exec_as_app console.php database:configure "$app" "$db_pwd" "$app" # Create database contents exec_as_app console.php database:install +# Set default database directory +FGALDIR=/home/yunohost.app/$app +exec_as_app sed -i -e "s#storage\/fgal#$FGALDIR#" lib/prefs/fgal.php + # Lock installer exec_as_app console.php installer:lock @@ -78,7 +82,10 @@ exec_as_app console.php installer:lock exec_as_app console.php index:rebuild # Set on Long Term Support versions -exec_as_app console.php preferences:set tiki_release_cycle longterm +if [[ "$release_cycle" == "longterm" ]] +then + exec_as_app console.php preferences:set tiki_release_cycle longterm +fi #================================================= # END OF SCRIPT