Skip to content

blogmotion/bm-bookstack-install

Repository files navigation

bm-bookstack-install (installation auto. de BookStack)

english version below

Description

Ce script automatise l'installation de BookStack sur les distributions basées sur RHEL (à vos risques et périls).

Présentation : https://blogmotion.fr/internet/bookstack-script-installation-centos-8-18255

Il y a un script pour RHEL8 et un script pour RHEL9.

Validé sur :

  • Alma Linux 8.10 (x64)
  • Alma Linux 9.5 (x64)

🚀 Utilisation

En tant que root (ou via sudo) :

RHEL8 :

chmod +x bookstack-install-RHEL8.sh && ./bookstack-install-RHEL8.sh

RHEL9 :

chmod +x bookstack-install-RHEL9.sh && ./bookstack-install-RHEL9.sh

LDAP avec Active Directory

Extrait de fichier .env

Connexion à un serveur LDAP Active Directory non sécurisé (port 389):

# LDAP authentication configuration - Refer to https://www.bookstackapp.com/docs/admin/ldap-auth/
# AUTH_METHOD=standard => pour repasser en connexion locale avec admin@admin.com
AUTH_METHOD=ldap
LDAP_SERVER=ldap://bm.loc:389
LDAP_VERSION=3
LDAP_ID_ATTRIBUTE=objectGUID
LDAP_BASE_DN="OU=Mes Utilisateurs,DC=bm,DC=loc"

# Identifiant de connexion au format LDAP 
#LDAP_DN="CN=ldap-bookstack,CN=Users,DC=bm,DC=loc"
# Identifiant de connexion au format court - attention: pas de guillemet)
LDAP_DN=ldap-bookstack@bm.loc
LDAP_PASS="**********"

# filtre de connexion, membre du groupe AD GRP_BookStack - login OU email OU SamAccountName ou UPN
LDAP_USER_FILTER="(&(|(sAMAccountName=${user})(userPrincipalName=${user})(mail=${user}))(memberOf=CN=GRP_BookStack,OU=Mes groupes,DC=bm,DC=loc))"

# commenter pour se co avec un compte sans email:
#LDAP_EMAIL_ATTRIBUTE=mail

LDAP_DISPLAY_NAME_ATTRIBUTE=cn
LDAP_FOLLOW_REFERRALS=true

LDAP_USER_TO_GROUPS=true
LDAP_GROUP_ATTRIBUTE="memberOf"
LDAP_REMOVE_FROM_GROUPS=false

Connexion à un serveur LDAP Active Directory TLS sécurisé (port 636):

# LDAP authentication configuration - Refer to https://www.bookstackapp.com/docs/admin/ldap-auth/
# AUTH_METHOD=standard => pour repasser en connexion locale avec admin@admin.com
AUTH_METHOD=ldap
LDAP_SERVER=ldaps://bm.loc:636
LDAP_VERSION=3
LDAP_ID_ATTRIBUTE=objectGUID
LDAP_BASE_DN="OU=Mes Utilisateurs,DC=bm,DC=loc"

# If you need to allow untrusted LDAPS certificates, add the below and uncomment (remove the #)
# Only set this option if debugging or you're absolutely sure it's required for your setup.
#LDAP_TLS_INSECURE=true

# Identifiant de connexion au format LDAP 
#LDAP_DN="CN=ldap-bookstack,CN=Users,DC=bm,DC=loc"
# Identifiant de connexion au format court - attention: pas de guillemet)
LDAP_DN=ldap-bookstack@bm.loc
LDAP_PASS="**********"

# filtre de connexion, membre du groupe AD GRP_BookStack - login OU email OU SamAccountName ou UPN
LDAP_USER_FILTER="(&(|(sAMAccountName=${user})(userPrincipalName=${user})(mail=${user}))(memberOf=CN=GRP_BookStack,OU=Mes groupes,DC=bm,DC=loc))"

# commenter pour se co avec un compte sans email:
#LDAP_EMAIL_ATTRIBUTE=mail

LDAP_DISPLAY_NAME_ATTRIBUTE=cn
LDAP_FOLLOW_REFERRALS=true

LDAP_USER_TO_GROUPS=true
LDAP_GROUP_ATTRIBUTE="memberOf"
LDAP_REMOVE_FROM_GROUPS=false

English version

[EN] Description

This script automates the installation of BookStack on RHEL-based distributions (at your own risk).

How to (french): https://blogmotion.fr/internet/bookstack-script-installation-centos-8-18255)

There is a script for RHEL8 and a script for RHEL9.

Tested on :

  • Alma Linux 8.10 (x64)
  • Alma Linux 9.5 (x64)

[EN] 🚀 Usage

Run as root (or prefix with sudo) :

RHEL8 :

chmod +x bookstack-install-RHEL8.sh && ./bookstack-install-RHEL8.sh

RHEL9 :

chmod +x bookstack-install-RHEL9.sh && ./bookstack-install-RHEL9.sh

About

bm-bookstack-install : installation automatisée de BookStack

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages