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

Merge pull request #14 from tiki-jyhem/2023-06-06_default_fgal_dir

2023 06 06 default fgal dir
This commit is contained in:
Éric Gaspar 2023-06-10 11:19:33 +02:00 committed by GitHub
commit 8c491786b0
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 8 additions and 2 deletions

View file

@ -2,4 +2,4 @@
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: `__DATA_DIR__`. 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: `__DATA_DIR__`. You will be able to migrate your currently uploaded files from one to the other.

View file

@ -71,6 +71,9 @@ 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
cd "$install_dir"
sed -i -e "s#storage/fgal#$data_dir#" lib/prefs/fgal.php
# Lock installer
exec_as_app console.php installer:lock
@ -78,7 +81,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