Projet

Général

Profil

Révision 5185f38b

Ajouté par Julien Enselme il y a plus de 10 ans

Publication des scrits

Les scripts n'ont plus besion de page de wiki dédiée. La descrition est dans le script.

Voir les différences:

bin/drushcronone
1 1
#!/bin/sh
2 2

  
3
# Deprecated in drupal 7
4
# Ce script permet de lancer les tâches planifiées sur un site Drupal 6. En effet, sous Drupal 6 les webmasters ne peuvent choisir via l’interface d’administration de Drupal.
5

  
3 6
. /users/guest/assos/bin/scripts-config.sh
4 7

  
5 8
if [ $# -lt 1 ]; then
bin/flush-files.sh
1 1
#!/bin/sh
2 2

  
3 3
help="# ARGS: number of files to keep, [email address]\n
4
# usage: flush files from a folder except a number equal to argument."
4
# usage: flush files from a folder except a number equal to argument.\n
5
It only prints a warning if scripts-utils.sh is not imported in order to be used
6
from the terminal."
5 7

  
6 8
# Check if scripts-utils.sh is imported.
7 9
if [ -z $scripts_utils ] ; then
bin/scripts-config-site.sh
3 3
# Sets useful variables of a site.
4 4
# ARGS: site_name
5 5
# Requires scripts-config.sh
6
# check_argumements is not used to avoid multiple imports
6 7

  
7 8
# Check if scripts-config.sh is imported.
8 9
if [ -z $scripts_config ] ; then
bin/scripts-config.sh
1 1
#!/bin/sh
2 2

  
3
# This script contains all the variables that are required to execute other scrits
4
# (database server, backup directories,…). It is design to make other scripts
5
# indendant of the current configuration and to change it without editing them.
6
# *These variables must be used in scirpts*
7

  
3 8
PATH=/sbin:/bin:/usr/sbin:/usr/bin:/usr/games:/usr/local/sbin:/usr/local/bin:/users/guest/assos/bin
4 9
PATH=$PATH:/usr/guest/assos/bin
5 10

  

Formats disponibles : Unified diff