Compare commits

...

7 Commits

Author SHA1 Message Date
Gilles Dubois
2f4609fe7d
Merge pull request #128 from OCSInventory-NG/update-ubuntu-image
Update ubuntu jammy to ubuntu noble
2025-08-18 14:52:58 +02:00
Gilles Dubois
34d5887bca
Merge pull request #125 from OCSInventory-NG/auth-type
Add authtype configuration
2025-08-18 14:52:30 +02:00
Charlene Auger
993d2ba609 refactor(dockerfile): update ubuntu jammy to ubuntu noble 2025-08-11 16:00:54 +02:00
Charlene Auger
5f26c756c4 feat(docker): add authtype configuration 2025-03-12 14:45:33 +01:00
Léa
653cd01eaf
Merge pull request #123 from Y0plait/patch-1
Update 10-com-server.sh
2024-10-30 11:39:23 +01:00
Y0plait
8638ad8a1f
Update 10-com-server.sh
Add quick and dirty fix for https://github.com/OCSInventory-NG/OCSInventory-Docker-Stack/issues/16
Add a sed replacement
2024-10-24 20:08:13 +02:00
Charlène Auger
a4d2b62bd1
Merge pull request #120 from OCSInventory-NG/update-2.12.3
chore: add 2.12.3 version
2024-09-23 09:17:24 +02:00
10 changed files with 50 additions and 4 deletions

View File

@ -1,4 +1,4 @@
FROM ubuntu:22.04
FROM ubuntu:24.04
ENV OCS_VERSION 2.12.3

View File

@ -21,6 +21,14 @@ services:
# See documentation to set up SSL for MySQL
OCS_SSL_ENABLED: 0
OCS_DBI_PRINT_ERROR: 0
# Define the auth type :
# 1 : Local Only
# 2 : Local and LDAP
# 3 : LDAP Only
# 4 : LDAP with SSO
# 5 : Always OK, won't ask for user and password
# 6 : CAS authentication
AUTH_TYPE: 1
links:
- ocsdb
networks:

View File

@ -42,6 +42,9 @@ if [ -f ${SRV_CONF_FILE} ]; then
done
fi
# Quick fix https://github.com/OCSInventory-NG/OCSInventory-Docker-Stack/issues/16
sed -i 's/^.*PerlSetEnv OCS_OPT_DBI_PRINT_ERROR.*$/PerlSetEnv OCS_OPT_DBI_PRINT_ERROR 0/' ${SRV_CONF_FILE}
# Permissions
chown -R $APACHE_RUN_USER: $OCS_LOG_DIR

View File

@ -0,0 +1,11 @@
#!/bin/bash
VAR_FILE=${OCS_WEBCONSOLE_DIR}/ocsreports/var.php
if [ -f ${VAR_FILE} ]; then
echo "+-----------------------------------------------+"
echo "| Customizing OCS Console AUTHTYPE... |"
echo "+-----------------------------------------------+"
echo
sed -ri -e "/AUTH_TYPE/c\define('AUTH_TYPE', $AUTH_TYPE);" ${VAR_FILE}
fi

View File

@ -1,4 +1,4 @@
FROM ubuntu:22.04
FROM ubuntu:24.04
LABEL maintainer="contact@ocsinventory-ng.org" \
version="dev" \

View File

@ -1,4 +1,4 @@
FROM ubuntu:22.04
FROM ubuntu:24.04
ENV OCS_VERSION nightly

View File

@ -74,7 +74,7 @@
# If you need to specify a mysql socket that the client's built-in
#PerlSetEnv OCS_OPT_DBI_MYSQL_SOCKET "path/to/mysql/unix/socket"
# DBI verbosity
PerlSetEnv OCS_OPT_DBI_PRINT_ERROR 0
PerlSetEnv OCS_OPT_DBI_PRINT_ERROR OCS_DBI_PRINT_ERROR
# Unicode support
PerlSetEnv OCS_OPT_UNICODE_SUPPORT 1

View File

@ -20,6 +20,15 @@ services:
OCS_DB_NAME: ocsweb
# See documentation to set up SSL for MySQL
OCS_SSL_ENABLED: 0
OCS_DBI_PRINT_ERROR: 0
# Define the auth type :
# 1 : Local Only
# 2 : Local and LDAP
# 3 : LDAP Only
# 4 : LDAP with SSO
# 5 : Always OK, won't ask for user and password
# 6 : CAS authentication
AUTH_TYPE: 1
links:
- ocsdb
networks:

View File

@ -23,6 +23,7 @@ if [ ! -f ${SRV_CONF_FILE} ]; then
sed -i 's/"PATH_TO_LOG_DIRECTORY"/'"${OCS_LOG_DIR//\//\\/}"'/g' ${SRV_CONF_FILE}
sed -i 's/"PATH_TO_PLUGINS_PERL_DIRECTORY"/'"${OCS_PERLEXT_DIR//\//\\/}"'/g' ${SRV_CONF_FILE}
sed -i 's/"PATH_TO_PLUGINS_CONFIG_DIRECTORY"/'"${OCS_PLUGINSEXT_DIR//\//\\/}"'/g' ${SRV_CONF_FILE}
sed -i 's/OCS_DBI_PRINT_ERROR/'"$OCS_DBI_PRINT_ERROR"'/g' ${SRV_CONF_FILE}
fi
# Replace Variables
@ -41,6 +42,9 @@ if [ -f ${SRV_CONF_FILE} ]; then
done
fi
# Quick fix https://github.com/OCSInventory-NG/OCSInventory-Docker-Stack/issues/16
sed -i 's/^.*PerlSetEnv OCS_OPT_DBI_PRINT_ERROR.*$/PerlSetEnv OCS_OPT_DBI_PRINT_ERROR 0/' ${SRV_CONF_FILE}
# Permissions
chown -R $APACHE_RUN_USER: $OCS_LOG_DIR

View File

@ -0,0 +1,11 @@
#!/bin/bash
VAR_FILE=${OCS_WEBCONSOLE_DIR}/ocsreports/var.php
if [ -f ${VAR_FILE} ]; then
echo "+-----------------------------------------------+"
echo "| Customizing OCS Console AUTHTYPE... |"
echo "+-----------------------------------------------+"
echo
sed -ri -e "/AUTH_TYPE/c\define('AUTH_TYPE', $AUTH_TYPE);" ${VAR_FILE}
fi