1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/bookstack_ynh.git synced 2024-09-03 18:16:02 +02:00
This commit is contained in:
ericgaspar 2021-01-29 18:33:33 +01:00
parent 8b137a1d34
commit 3d7a0185c6
No known key found for this signature in database
GPG key ID: 574F281483054D44
2 changed files with 19 additions and 2 deletions

View file

@ -22,6 +22,7 @@ BookStack est une plate-forme simple, auto-hébergée et facile à utiliser pour
* [Démo officielle](https://demo.bookstackapp.com/) * [Démo officielle](https://demo.bookstackapp.com/)
## Configuration ## Configuration
Login using the default admin details `admin@admin.com` with a password of `password`. You should change these details immediately after logging in for the first time. Login using the default admin details `admin@admin.com` with a password of `password`. You should change these details immediately after logging in for the first time.
* How to configure this app: From an admin panel, a plain file with SSH, or any other way. * How to configure this app: From an admin panel, a plain file with SSH, or any other way.

View file

@ -85,7 +85,21 @@ ynh_add_fpm_config --package="$extra_php_dependencies"
ynh_script_progression --message="Upgrading Composer..." --weight=1 ynh_script_progression --message="Upgrading Composer..." --weight=1
# Upgrade composer itself # Upgrade composer itself
ynh_install_composer ynh_install_composer --phpversion=$phpversion --workdir=$final_path --install_args="--prefer-source --no-dev"
#=================================================
# MODIFY A CONFIG FILE
#=================================================
cp -a ../conf/.env.example $final_path/.env
ynh_replace_string --match_string="__DB_NAME__" --replace_string="$db_name" --target_file="$final_path/.env"
ynh_replace_string --match_string="__DB_PWD__" --replace_string="$db_pwd" --target_file="$final_path/.env"
ynh_replace_string --match_string="__DOMAIN__" --replace_string="$domain" --target_file="$final_path/.env"
ynh_replace_string --match_string="__PATH__" --replace_string="$path_url" --target_file="$final_path/.env"
ynh_replace_string --match_string="__LANGUAGE__" --replace_string="$language" --target_file="$final_path/.env"
ynh_replace_string --match_string="__APP__" --replace_string="$app" --target_file="$final_path/.env"
ynh_store_file_checksum $final_path/.env
#================================================= #=================================================
# INSTALL AND INITIALIZE COMPOSER # INSTALL AND INITIALIZE COMPOSER
@ -95,7 +109,9 @@ ynh_script_progression --message="Upgrading source files..." --weight=10
pushd $final_path pushd $final_path
# install the PHP dependencies using Composer # install the PHP dependencies using Composer
ynh_composer_exec phpversion="$phpversion" workdir="$final_path" --commands="install --no-dev" ynh_composer_exec phpversion="$phpversion" workdir="$final_path" --commands="install --no-dev"
php$phpversion artisan migrate && php$phpversion artisan cache:clear && php$phpversion artisan view:clear php$phpversion artisan migrate --no-interaction --force
php$phpversion artisan cache:clear --no-interaction --force
php$phpversion artisan view:clear --no-interaction --force
popd popd
#================================================= #=================================================