mirror of
https://github.com/YunoHost-Apps/bookstack_ynh.git
synced 2024-09-03 18:16:02 +02:00
Fix
This commit is contained in:
parent
5b709cb5ec
commit
5964369d23
3 changed files with 3 additions and 4 deletions
|
@ -10,7 +10,7 @@ name = "Bookstack configuration"
|
|||
ask = "General auth"
|
||||
choices = ["standard", "ldap"]
|
||||
default = "standard"
|
||||
help = "Select an authentication methode to connect to BookStack"
|
||||
help = "Select an authentication method to connect to BookStack."
|
||||
bind = "AUTH_METHOD:__FINALPATH__/.env"
|
||||
|
||||
[main.php_fpm_config]
|
||||
|
|
|
@ -26,8 +26,6 @@ is_public=$YNH_APP_ARG_IS_PUBLIC
|
|||
language=$YNH_APP_ARG_LANGUAGE
|
||||
phpversion=$YNH_PHP_VERSION
|
||||
password=$YNH_APP_ARG_PASSWORD
|
||||
admin=$YNH_APP_ARG_ADMIN
|
||||
email=$(ynh_user_get_info --username=$admin --key=mail)
|
||||
timezone="$(cat /etc/timezone)"
|
||||
redis_db=$(ynh_redis_get_free_db)
|
||||
mail_pwd=$(ynh_string_random --length=12)
|
||||
|
@ -135,7 +133,7 @@ ynh_script_progression --message="Install BookStack" --weight=5
|
|||
pushd $final_path
|
||||
php$phpversion artisan key:generate --no-interaction --force
|
||||
php$phpversion artisan migrate --no-interaction --force
|
||||
#php$phpversion artisan bookstack:create-admin --email="$email" --name="$admin" --password="$password"
|
||||
php$phpversion artisan bookstack:create-admin --email="admin@${domain}" --name="Admin" --password="$password"
|
||||
popd
|
||||
|
||||
# Set permissions to app files
|
||||
|
|
|
@ -156,6 +156,7 @@ pushd $final_path
|
|||
php$phpversion artisan cache:clear
|
||||
php$phpversion artisan config:clear
|
||||
php$phpversion artisan view:clear
|
||||
php$phpversion artisan bookstack:create-admin --email="admin@${domain}" --name="Admin" --password="$password"
|
||||
#php$phpversion artisan bookstack:create-admin --email="$email" --name="$admin" --password="$password"
|
||||
popd
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue