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:
commit
8c491786b0
2 changed files with 8 additions and 2 deletions
|
@ -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.
|
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.
|
||||||
|
|
|
@ -71,6 +71,9 @@ exec_as_app console.php database:configure "$app" "$db_pwd" "$app"
|
||||||
# Create database contents
|
# Create database contents
|
||||||
exec_as_app console.php database:install
|
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
|
# Lock installer
|
||||||
exec_as_app console.php installer:lock
|
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
|
exec_as_app console.php index:rebuild
|
||||||
|
|
||||||
# Set on Long Term Support versions
|
# Set on Long Term Support versions
|
||||||
|
if [[ "$release_cycle" == "longterm" ]]
|
||||||
|
then
|
||||||
exec_as_app console.php preferences:set tiki_release_cycle longterm
|
exec_as_app console.php preferences:set tiki_release_cycle longterm
|
||||||
|
fi
|
||||||
|
|
||||||
#=================================================
|
#=================================================
|
||||||
# END OF SCRIPT
|
# END OF SCRIPT
|
||||||
|
|
Loading…
Add table
Reference in a new issue