Skip to content

Commit c7553d5

Browse files
committed
Merge branch 'main' into dev
2 parents 8c48559 + 68d003e commit c7553d5

File tree

2 files changed

+9
-15
lines changed

2 files changed

+9
-15
lines changed

config/mes_options.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
} else {
1919
define('_SITES_ADMIN_MUTUALISATION', 'thematiques.laclasse.com');
2020
define('_AUTORISER_TELECHARGER_PLUGINS', false);
21-
date_default_timezone_set('Europe/Paris');
21+
$GLOBALS['spip_header_silencieux'] = 1;
2222
}
2323

2424
define('_DOC_MAX_SIZE', 3000);

docker-entrypoint.sh

+8-14
Original file line numberDiff line numberDiff line change
@@ -58,12 +58,16 @@ if version_greater "$image_version" "$installed_version"; then
5858
tar cf - --one-file-system -C /usr/src/spip . | tar xf -
5959
echo >&2 "Complete! SPIP has been successfully copied to $PWD"
6060

61-
echo >&2 "Create plugins, libraries and template directories"
62-
mkdir -p plugins/auto
61+
echo >&2 "Création des dossiers lib et tmp à la racine"
6362
mkdir -p lib
64-
mkdir -p squelettes
6563
mkdir -p tmp/{dump,log,upload}
66-
chown -R www-data:www-data plugins lib squelettes tmp
64+
chown -R www-data:www-data lib tmp
65+
66+
for CCN in $LISTE_CCN ; do
67+
echo >&2 "Création des dossiers pour la ccn $CCN : IMG,tmp,local,config"
68+
mkdir -p sites/$CCN{IMG,tmp,local,config}
69+
chown -R www-data:www-data sites/$CCN
70+
done
6771

6872
if [ ! -e .htaccess ]; then
6973
cp -p htaccess.txt .htaccess
@@ -98,14 +102,4 @@ if [[ ! -e config/connect.php && ${SPIP_AUTO_INSTALL} = 1 ]]; then
98102
--admin-pass ${SPIP_ADMIN_PASS}" || true
99103
fi
100104

101-
# Default mes_options
102-
if [ ! -e config/mes_options.php ]; then
103-
/bin/cat << MAINEOF > config/mes_options.php
104-
<?php
105-
if (!defined("_ECRIRE_INC_VERSION")) return;
106-
\$GLOBALS['spip_header_silencieux'] = 1;
107-
?>
108-
MAINEOF
109-
fi
110-
111105
exec "$@"

0 commit comments

Comments
 (0)