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

Installation completes. Tiki installer is skipped. No mail needs to be sent to admin.

This commit is contained in:
Jyhem 2023-02-21 21:51:30 +01:00
parent dfcdb579f6
commit daae1ab0fb
2 changed files with 24 additions and 30 deletions

View file

@ -1,9 +1,12 @@
### Postinstall ### Postinstall
Database credentials are sent by mail for the post installation. `http://example.org/tiki-install.php` You can log in using the special `admin` username and the `admin` password. You will be asked to change the password immediately after login.
### Storing your uploaded files ### Storing your uploaded files
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: `/home/yunohost.app/tiki`. 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 this preset path directory: `/home/yunohost.app/tiki`. You will be able to migrate your currently uploaded files from one to the other.
If you are facing any problem or want to improve this app, please open a new issue here: https://github.com/YunoHost-Apps/tiki_ynh/issues"

View file

@ -119,18 +119,29 @@ chmod -R o-rwx "$datadir"
chown -R $app:www-data "$datadir" chown -R $app:www-data "$datadir"
#================================================= #=================================================
# ADD A CONFIGURATION # ADD INITIAL CONFIGURATION
#================================================= #=================================================
# ynh_script_progression --message="Adding a configuration file..." --time --weight=1
# ynh_add_config --template="../conf/local.php" --destination="$final_path/db/local.php" # Define a function to execute commands with proper permissions
exec_as_app() {
(cd "$final_path" && ynh_exec_as "$app" \
php${phpversion} --define apc.enable_cli=1 --no-interaction --no-ansi "$@")
}
# chmod 400 "$final_path/db/local.php" ynh_script_progression --message="Create database configuration file..." --time --weight=1
# chown $app:$app "$final_path/db/local.php" exec_as_app console.php database:configure "$app" "$db_pwd" "$app"
# pushd $final_path ynh_script_progression --message="Create database contents..." --time --weight=1
# php$phpversion console.php database:install exec_as_app console.php database:install
# popd
ynh_script_progression --message="Lock installer..." --time --weight=1
exec_as_app console.php installer:lock
ynh_script_progression --message="Create data index..." --time --weight=1
exec_as_app console.php index:rebuild
ynh_script_progression --message="Set on Long Term Support versions..." --time --weight=1
exec_as_app console.php preferences:set tiki_release_cycle longterm
#================================================= #=================================================
# SETUP SSOWAT # SETUP SSOWAT
@ -150,26 +161,6 @@ ynh_script_progression --message="Reloading NGINX web server..." --weight=1
ynh_systemd_action --service_name=nginx --action=reload ynh_systemd_action --service_name=nginx --action=reload
#=================================================
# SEND A README FOR THE ADMIN
#=================================================
ynh_script_progression --message="Sending a readme for the admin..." --weight=1
message="Tiki was successfully installed :)
Please open your $app domain: https://$domain$path_url
Complete the registration process from the setup page displayed.
Details for MySQL database to be enterted while registration process:
Database name: $app
Database userame: $app
Database password: $db_pwd
If you are facing any problem or want to improve this app, please open a new issue here: https://github.com/YunoHost-Apps/tiki_ynh/issues"
ynh_send_readme_to_admin "$message"
#================================================= #=================================================
# END OF SCRIPT # END OF SCRIPT
#================================================= #=================================================