+#!/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/heureux-cyclage/clavette-lyon/install
+# ACTION: install from ./etc/nginx/org/heureux-cyclage/clavette-lyon
+ nginx_log_home=$("$tool"/cat sys/nginx/log/home)
+ nginx_log_user=$("$tool"/cat sys/nginx/log/user)
+ pool=$("$tool"/cat sys/php5/fpm/org/heureux-cyclage/clavette-lyon/pool)
+ user=$("$tool"/cat sys/nginx/org/heureux-cyclage/clavette-lyon/user)
+ home=$("$tool"/cat sys/nginx/org/heureux-cyclage/clavette-lyon/home)
+ "$tool"/ssh-sudo \
+ install -D -d -m 2750 -o "$nginx_log_user" -g "$nginx_log_user" \
+ "$nginx_log_home"/"$site"/tls
+ "$tool"/ssh-sudo adduser "$pool" "$user"
+ "$tool"/etc/mysql/user/install "$pool"
+ "$tool"/etc/mysql/database/install "$pool"
+ "$tool"/install etc/nginx/org/heureux-cyclage/clavette-lyon