Skip to content

Commit

Permalink
Correction for php83 config files path
Browse files Browse the repository at this point in the history
  • Loading branch information
PPCM committed Nov 25, 2024
1 parent ad8e68c commit fcad9da
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 9 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

## Supported tags

- 10, 10.0, 10.0.17, 10.0.17-1, latest
- 10, 10.0, 10.0.17, 10.0.17-2, latest
- 10.0.16, 10.0.16-5
- 10.0.15, 10.0.15-2
- 10.0.14, 10.0.14-1
Expand Down
4 changes: 2 additions & 2 deletions glpi-cron-daemon/start_glpi-cron-daemon.sh
Original file line number Diff line number Diff line change
Expand Up @@ -15,10 +15,10 @@ fi
ln -s /usr/share/zoneinfo/$TZ /etc/localtime

# Modify default timezone for PHP
sed -i "s|;date.timezone =|date.timezone=${TZ}|" /etc/php82/php.ini
sed -i "s|;date.timezone =|date.timezone=${TZ}|" /etc/php83/php.ini

# Modify default cookie_httponly value for security purpose
sed -i "s|session.cookie_httponly =|session.cookie_httponly = 1|" /etc/php82/php.ini
sed -i "s|session.cookie_httponly =|session.cookie_httponly = 1|" /etc/php83/php.ini

# Waiting for the installation to be done
echo `date` " - Waiting GLPI to be installed from ppcm/glpi-server"
Expand Down
4 changes: 2 additions & 2 deletions glpi-cron/start_glpi-cron.sh
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
#!/bin/sh

# Modify default timezone for PHP
sed -i "s|;date.timezone =|date.timezone=${TZ}|" /etc/php82/php.ini
sed -i "s|;date.timezone =|date.timezone=${TZ}|" /etc/php83/php.ini

# Modify default cookie_httponly value for security purpose
sed -i "s|session.cookie_httponly =|session.cookie_httponly = 1|" /etc/php82/php.ini
sed -i "s|session.cookie_httponly =|session.cookie_httponly = 1|" /etc/php83/php.ini

# Waiting for the installation to be done
echo `date` " - Waiting GLPI to be installed from ppcm/glpi-server"
Expand Down
8 changes: 4 additions & 4 deletions glpi-server/start_glpi-server.sh
Original file line number Diff line number Diff line change
Expand Up @@ -103,16 +103,16 @@ fi
ln -s /usr/share/zoneinfo/$TZ /etc/localtime

# Modify default timezone for PHP
sed -i "s|;date.timezone =|date.timezone=${TZ}|" /etc/php82/php.ini
sed -i "s|;date.timezone =|date.timezone=${TZ}|" /etc/php83/php.ini

# Modify default cookie_httponly value for security purpose
sed -i "s|session.cookie_httponly =|session.cookie_httponly = 1|" /etc/php82/php.ini
sed -i "s|session.cookie_httponly =|session.cookie_httponly = 1|" /etc/php83/php.ini

# Modify maximum amount of memory a script may consume
sed -i "s|memory_limit = 128M|memory_limit = 256M|" /etc/php82/php.ini
sed -i "s|memory_limit = 128M|memory_limit = 256M|" /etc/php83/php.ini

# Modify maximum execution time of each script, in seconds
sed -i "s|max_execution_time = 30|max_execution_time = 600|" /etc/php82/php.ini
sed -i "s|max_execution_time = 30|max_execution_time = 600|" /etc/php83/php.ini

# Does the GLPI database config file exists
if [ ! -f '/etc/glpi/config_db.php' ]
Expand Down

0 comments on commit fcad9da

Please sign in to comment.