Files
dolibarr/dev/initdemo
MDW 7d89635c5b Qual: Update pre-commit for shell script formatting (#37221)
* Qual: Upgrade pre-commit/beautysh, .editorconfig for sh

# Qual: Upgrade pre-commit/beautysh, .editorconfig for sh

- Upgrade beautysh pre-commit hook (trixie/python 3.13 compatibility);
- Indicate tab indent for shell scripts in .editorconfig.

* Qual: Update pre-commit hooks configuration

- Exclude `dev/initdemo/initdemo.sh` from beautysh hook
- Enable shellcheck hook manually
- Fix indentation in `initdemo.sh`

* Qual: Update pre-commit hook configuration

- Update .pre-commit-config.yaml to exclude dolibarr.postrm from beautysh formatting

---------

Co-authored-by: Laurent Destailleur <eldy@destailleur.fr>
2026-02-17 22:05:03 +01:00
..
2021-04-15 13:22:03 +02:00
2026-02-16 20:08:06 +01:00
2024-11-27 16:37:14 +01:00
2026-01-11 18:58:17 +01:00
2026-02-15 23:13:19 +01:00

README

The scripts in this directory can be used to reload or save a demo database. The package dialog is required.

Init demo

The script initdemo.sh will erase the current database with data from dev/initdemo/mysqldump_dolibarr_x.y.z.sql and copy files from documents_demo to the official document directory.

You may need to execute chmod 700 initdemo.sh then run ./initdemo.sh to launch the Graphical User Interface.

After loading the demo files, the admin login may be one of the following:

  • admin / admin or
  • admin / adminadmin

Update demo

The goal of the script dev/initdemo/updatedemo.php is to update the dates in the demo data so that samples are up to date.

Save demo

The script dev/initdemo.savedemo.sh will save the current database into a database dump file.