From: Ludovic CHEVALIER Date: Mon, 5 Sep 2016 09:00:06 +0000 (+0200) Subject: Modifications : etc/nginx/org/chatperche/www/server.conf.m4 X-Git-Url: https://git.cyclocoop.org/?p=lhc%2Fadmin.git;a=commitdiff_plain;h=0d5f7dcccbfbf24019a3e8e852029a9ce1f42ec3 Modifications : etc/nginx/org/chatperche/www/server.conf.m4 --- diff --git a/srv/ateliers/etc/nginx/org/chatperche/www/install b/srv/ateliers/etc/nginx/org/chatperche/www/install deleted file mode 120000 index 135b97d..0000000 --- a/srv/ateliers/etc/nginx/org/chatperche/www/install +++ /dev/null @@ -1 +0,0 @@ -.../lib/tool/admin/etc/nginx/$site/install \ No newline at end of file diff --git a/srv/ateliers/etc/nginx/org/chatperche/www/install b/srv/ateliers/etc/nginx/org/chatperche/www/install new file mode 100755 index 0000000..a39a8d9 --- /dev/null +++ b/srv/ateliers/etc/nginx/org/chatperche/www/install @@ -0,0 +1,24 @@ +#!/bin/sh -eu +# SYNTAX: $path +# DESCRIPTION: install + +# ACTION: initialize from .../lib/tool/admin/ + tool=$(readlink -e "${0%/install}"/...)/lib/tool/admin + . "$tool"/lib/install.sh +# ACTION: initialize $sv from ./sys/$sv/ + sv=${cmd##*/etc/} + sv=${sv%%/*} +# ACTION: initialize $site from ./etc/$sv/$site/install + site=${cmd##*/"$sv"/} + site=${site%/install} +# ACTION: install from ./etc/nginx/\$site/install + "$tool"/etc/nginx/\$site/install "$site" +# TODO: invoke php install script /etc/php5/fpm/org/chatperche/www/install +# ACTION: install from ./etc/nginx/org/chatperche/www + pool=$("$tool"/cat sys/php5/fpm/org/chatperche/www/user) + user=$("$tool"/cat sys/nginx/org/chatperche/www/user) + home=$("$tool"/cat sys/nginx/org/chatperche/www/home) + "$tool"/ssh-sudo adduser "$pool" "$user" + "$tool"/etc/mysql/user/install "$pool" + "$tool"/etc/mysql/database/install "$pool" + "$tool"/install etc/nginx/org/chatperche/www diff --git a/srv/ateliers/etc/nginx/org/chatperche/www/server.conf.m4 b/srv/ateliers/etc/nginx/org/chatperche/www/server.conf.m4 index 95887c0..5704d6b 100644 --- a/srv/ateliers/etc/nginx/org/chatperche/www/server.conf.m4 +++ b/srv/ateliers/etc/nginx/org/chatperche/www/server.conf.m4 @@ -13,3 +13,8 @@ server { listen 80; return 301 http://ateliervelo.free.fr/; } +server { + server_name + chatperche.heureux-cyclage.org; + listen 80; +}