@@ -58,12 +58,16 @@ if version_greater "$image_version" "$installed_version"; then
58
58
tar cf - --one-file-system -C /usr/src/spip . | tar xf -
59
59
echo >&2 " Complete! SPIP has been successfully copied to $PWD "
60
60
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"
63
62
mkdir -p lib
64
- mkdir -p squelettes
65
63
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
67
71
68
72
if [ ! -e .htaccess ]; then
69
73
cp -p htaccess.txt .htaccess
@@ -98,14 +102,4 @@ if [[ ! -e config/connect.php && ${SPIP_AUTO_INSTALL} = 1 ]]; then
98
102
--admin-pass ${SPIP_ADMIN_PASS} " || true
99
103
fi
100
104
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
-
111
105
exec " $@ "
0 commit comments