réorganiser les fichiers
passer en version 6.0.0 renommer apache.config en apache.tools
This commit is contained in:
parent
5a6a5bcc94
commit
1665af9745
|
@ -1,7 +1,7 @@
|
||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
# -*- coding: utf-8 mode: sh -*- vim:sw=4:sts=4:et:ai:si:sta:fenc=utf-8
|
# -*- 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
|
source "$(dirname "$0")/lib/ulib/ulib" || exit 1
|
||||||
urequire DEFAULTS apache.config
|
urequire DEFAULTS template apache.tools
|
||||||
|
|
||||||
function display_help() {
|
function display_help() {
|
||||||
uecho "$scriptname: Gérer une configuration apache pour déploiement
|
uecho "$scriptname: Gérer une configuration apache pour déploiement
|
||||||
|
@ -155,7 +155,7 @@ __templatectl_parseopts "$@" && \
|
||||||
set -- "${args[@]}" || die "$args"
|
set -- "${args[@]}" || die "$args"
|
||||||
|
|
||||||
# répertoire source
|
# répertoire source
|
||||||
srcdir="$scriptdir/lib/apacheconfig.template"
|
setx srcdir=templatesrc apacheconfig
|
||||||
# répertoire de référence
|
# répertoire de référence
|
||||||
autocreate=
|
autocreate=
|
||||||
if [ -z "$destdir" ]; then
|
if [ -z "$destdir" ]; then
|
||||||
|
|
|
@ -1 +1 @@
|
||||||
005001000
|
006000000
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
##@cooked comments # -*- coding: utf-8 mode: sh -*- vim:sw=4:sts=4:et:ai:si:sta:fenc=utf-8
|
##@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
|
##@cooked nocomments
|
||||||
##@require base
|
##@require base
|
||||||
##@require sysinfos
|
##@require sysinfos
|
||||||
|
|
|
@ -1,11 +1,11 @@
|
||||||
##@cooked comments # -*- coding: utf-8 mode: sh -*- vim:sw=4:sts=4:et:ai:si:sta:fenc=utf-8
|
##@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
|
##@cooked nocomments
|
||||||
##@require base
|
##@require base
|
||||||
##@require sysinfos
|
##@require sysinfos
|
||||||
##@require template
|
##@require apache
|
||||||
uprovide apache.config
|
uprovide apache.tools
|
||||||
urequire base sysinfos template apache
|
urequire base sysinfos apache
|
||||||
|
|
||||||
function __apache_resolvcert() {
|
function __apache_resolvcert() {
|
||||||
[ -n "$__rc_dir" ] || __rc_dir="$(dirname "$__rc_conf")"
|
[ -n "$__rc_dir" ] || __rc_dir="$(dirname "$__rc_conf")"
|
|
@ -227,6 +227,15 @@ function template_diff() {
|
||||||
done | page_maybe -S
|
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() { :; }
|
function __templatectl_display_help() { :; }
|
||||||
__TEMPLATECTL_OTHER_OPTS=()
|
__TEMPLATECTL_OTHER_OPTS=()
|
||||||
function __templatectl_parseopts() {
|
function __templatectl_parseopts() {
|
||||||
|
|
|
@ -33,7 +33,7 @@ __templatectl_parseopts "$@" && \
|
||||||
set -- "${args[@]}" || die "$args"
|
set -- "${args[@]}" || die "$args"
|
||||||
|
|
||||||
# répertoire source
|
# répertoire source
|
||||||
srcdir="$scriptdir/lib/runsconfig.template"
|
setx srcdir=templatesrc runsconfig
|
||||||
# répertoire de référence
|
# répertoire de référence
|
||||||
[ -n "$destdir" ] || destdir=.
|
[ -n "$destdir" ] || destdir=.
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue