Project

General

Profile

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

root / other-scripts / modif_settings_20_sites_jm2l.sh @ 140af436

1
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