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

Update install

This commit is contained in:
Éric Gaspar 2023-09-10 18:52:39 +02:00
parent 5f8062481c
commit 39662e95dc

View file

@ -61,24 +61,24 @@ exec_as_app() {
} }
# Create database configuration file # Create database configuration file
exec_as_app console.php database:configure "$app" "$db_pwd" "$app" ynh_exec_warn_less exec_as_app console.php database:configure "$app" "$db_pwd" "$app"
# Create database contents # Create database contents
exec_as_app console.php database:install ynh_exec_warn_less exec_as_app console.php database:install
# Set default database directory # Set default database directory
cd "$install_dir" cd "$install_dir"
sed -i -e "s#storage/fgal#$data_dir#" lib/prefs/fgal.php sed -i -e "s#storage/fgal#$data_dir#" lib/prefs/fgal.php
# Lock installer # Lock installer
exec_as_app console.php installer:lock ynh_exec_warn_less exec_as_app console.php installer:lock
# Create data index # Create data index
exec_as_app console.php index:rebuild ynh_exec_warn_less exec_as_app console.php index:rebuild
# Set on Long Term Support versions # Set on Long Term Support versions
if [[ "$release_cycle" == "longterm" ]] if [[ "$release_cycle" == "longterm" ]]
then then
exec_as_app console.php preferences:set tiki_release_cycle longterm ynh_exec_warn_less exec_as_app console.php preferences:set tiki_release_cycle longterm
fi fi
#================================================= #=================================================