1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/tiki_ynh.git synced 2024-09-04 01:15:54 +02:00

[FIX] Fix ADMIN.md message and preset the default database storage folder

This commit is contained in:
Jyhem 2023-06-06 20:53:53 +02:00
parent 90ba25272e
commit 495c049036
2 changed files with 10 additions and 2 deletions

View file

@ -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.

View file

@ -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