Project

General

Profile

Paste
Download (727 Bytes) Statistics
| Branch: | Revision:

root / scripts_divers / modif_settings_20_sites_jm2l.sh @ 65ce03da

1 96268c93 jenselme
for i in {2..10}
2
do
3
    `cp htmltest/sites/assos.centrale-marseille.fr.jm2l$i/settings.php htmltest/sites/assos.centrale-marseille.fr.jm2l$i/settings_temp.php`
4
    `head -n 184 htmltest/sites/assos.centrale-marseille.fr.jm2l$i/settings_temp.php > htmltest/sites/assos.centrale-marseille.fr.jm2l$i/settings.php`
5
    `echo "'database' => 'jm2l$i'," >> htmltest/sites/assos.centrale-marseille.fr.jm2l$i/settings.php`
6
    `tail -n 273 htmltest/sites/assos.centrale-marseille.fr.jm2l$i/settings_temp.php >> htmltest/sites/assos.centrale-marseille.fr.jm2l$i/settings.php`
7
    `rm htmltest/sites/assos.centrale-marseille.fr.jm2l$i/settings_temp.php`
8
    `chmod 400 htmltest/sites/assos.centrale-marseille.fr.jm2l$i/settings.php`
9
done