réorganiser les fichiers

passer en version 6.0.0
renommer apache.config en apache.tools
This commit is contained in:
Jephte CLAIN 2014-10-23 21:26:42 +04:00
parent 5a6a5bcc94
commit 1665af9745
31 changed files with 18 additions and 9 deletions

View File

@ -1,7 +1,7 @@
#!/bin/bash
# -*- coding: utf-8 mode: sh -*- vim:sw=4:sts=4:et:ai:si:sta:fenc=utf-8
source "$(dirname "$0")/lib/ulib/ulib" || exit 1
urequire DEFAULTS apache.config
urequire DEFAULTS template apache.tools
function display_help() {
uecho "$scriptname: Gérer une configuration apache pour déploiement
@ -155,7 +155,7 @@ __templatectl_parseopts "$@" && \
set -- "${args[@]}" || die "$args"
# répertoire source
srcdir="$scriptdir/lib/apacheconfig.template"
setx srcdir=templatesrc apacheconfig
# répertoire de référence
autocreate=
if [ -z "$destdir" ]; then

View File

@ -1 +1 @@
005001000
006000000

View File

@ -1,5 +1,5 @@
##@cooked comments # -*- coding: utf-8 mode: sh -*- vim:sw=4:sts=4:et:ai:si:sta:fenc=utf-8
## Gestion du service apache (démarrage/arrêt), et de sa configuration
## Gestion du service apache et de sa configuration
##@cooked nocomments
##@require base
##@require sysinfos

View File

@ -1,11 +1,11 @@
##@cooked comments # -*- coding: utf-8 mode: sh -*- vim:sw=4:sts=4:et:ai:si:sta:fenc=utf-8
## Templates pour apache
## Outils de haut niveau pour gérer apache et sa configuration
##@cooked nocomments
##@require base
##@require sysinfos
##@require template
uprovide apache.config
urequire base sysinfos template apache
##@require apache
uprovide apache.tools
urequire base sysinfos apache
function __apache_resolvcert() {
[ -n "$__rc_dir" ] || __rc_dir="$(dirname "$__rc_conf")"

View File

@ -227,6 +227,15 @@ function template_diff() {
done | page_maybe -S
}
function templatesrc() {
urequire ulib
if [ -n "$ULIBDIR" ]; then
echo "$ULIBDIR/templates/$1"
else
abspath "templates/$1"
fi
}
function __templatectl_display_help() { :; }
__TEMPLATECTL_OTHER_OPTS=()
function __templatectl_parseopts() {

View File

@ -33,7 +33,7 @@ __templatectl_parseopts "$@" && \
set -- "${args[@]}" || die "$args"
# répertoire source
srcdir="$scriptdir/lib/runsconfig.template"
setx srcdir=templatesrc runsconfig
# répertoire de référence
[ -n "$destdir" ] || destdir=.