- Break large entrypoint script in small scripts - Separates the responsibility of the contexts (api, communication and reports) in specific files - Make it easy for users to add custom scripts across volumes in /docker-entrypoint.d directory
18 lines
640 B
Bash
18 lines
640 B
Bash
#!/bin/bash
|
|
|
|
echo "+----------------------------------------------------------+"
|
|
echo "| |"
|
|
echo "| Welcome to OCS Inventory NG Management Docker! |"
|
|
echo "| |"
|
|
echo "+----------------------------------------------------------+"
|
|
|
|
# Create all directories
|
|
mkdir -p $OCS_LOG_DIR
|
|
mkdir -p $OCS_PERLEXT_DIR/Apache/Ocsinventory/Plugins
|
|
mkdir -p $OCS_PLUGINSEXT_DIR
|
|
mkdir -p $OCS_VARLIB_DIR/download
|
|
mkdir -p $OCS_VARLIB_DIR/ipd
|
|
mkdir -p $OCS_VARLIB_DIR/logs
|
|
mkdir -p $OCS_VARLIB_DIR/scripts
|
|
mkdir -p $OCS_VARLIB_DIR/snmp
|