Changeset 74498 in spip-zone


Ignore:
Timestamp:
Jul 28, 2013, 10:12:12 PM (6 years ago)
Author:
gilles.vincent@…
Message:

Ajoutons au script d'installation / reinitialisation la possibilite d'utiliser un fichier de configuration (mes_options.inc) pour personaliser l'installation.
Cela permet d'utiliser ce script dans n'importe quelle situation.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • _galaxie_/demo.spip.org/script/reset.ksh

    r63591 r74498  
    11#!/bin/bash
    22REP=/var/www/demo.spip.net/public_html
     3USER=www-data
     4GROUP=www-data
    35
    4 cd $REP
     6if [ -f "mes_options.inc" ]; then source "mes_options.inc"; fi
     7
    58#on fait un svn update sur la branche stable
    6 svn update
     9svn update $REP
    710
    811#on vide le cache
     
    1215
    1316#on recopie les images et la base
    14 echo " cp -p -r $REP/../svn/IMG/* $REP/IMG/"
    15 cp -p -r $REP/../svn/IMG/* $REP/IMG/
     17echo "cp -p -r ../IMG/* $REP/IMG/"
     18cp -p -r ../IMG/* $REP/IMG/
    1619
    17 echo "cp  $REP/../svn/config/bases/spip.sqlite $REP/config/bases/spip.sqlite"
    18 cp  $REP/../svn/config/bases/spip.sqlite $REP/config/bases/spip.sqlite
     20echo "cp ../config/bases/spip.sqlite $REP/config/bases/spip.sqlite"
     21cp ../config/bases/spip.sqlite $REP/config/bases/spip.sqlite
    1922chmod 755 $REP/config/bases/spip.sqlite
    2023
    21 chown -R www-data:www-data $REP
     24chown -R $USER:$GROUP $REP
    2225 
Note: See TracChangeset for help on using the changeset viewer.