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:
Éric Gaspar 2023-06-14 14:15:36 +02:00
parent f16b42f62d
commit ee2c6ed8e9
2 changed files with 15 additions and 2 deletions

View file

@ -18,7 +18,7 @@ userdoc = "https://www.bookstackapp.com/docs/user/"
code = "https://github.com/BookStackApp/BookStack"
[integration]
yunohost = ">= 11.1.19"
yunohost = ">= 11.1.20"
architectures = "all"
multi_instance = true
ldap = true
@ -58,6 +58,13 @@ ram.runtime = "50M"
type = "group"
default = "visitors"
[install.password]
# this is a generic question - ask strings are automatically handled by YunoHost's core
# Note that user-provided passwords questions are not automatically saved as setting
help.en = "The password is needed only if you select standard authentication."
help.fr = "Le mot de passe n'est requis que si vous sélectionnez l'authentification standard."
type = "password"
[resources]
[resources.sources]

View file

@ -85,7 +85,13 @@ ynh_script_progression --message="Install BookStack" --weight=5
pushd $install_dir
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" --external-auth-id="$admin"
if [ "$auth_method" = "ldap" ]
then
php$phpversion artisan bookstack:create-admin --email="$email" --name="$admin" --external-auth-id="$admin"
else
php$phpversion artisan bookstack:create-admin --email="$email" --name="$admin" --password="$password"
fi
popd
#=================================================