Modifications : srv/ateliers/etc/nginx/dhparam.4096.pem
[lhc/admin.git] / srv / ateliers / etc / nginx / org / heureux-cyclage / install
old mode 100644 (file)
new mode 100755 (executable)
index 2dd49b2..97a4a5a
@@ -5,10 +5,14 @@
 # ACTION: initialize from ./
        test -L "$0" && tool="$(readlink -e "$0")" || tool=$0
        tool=$(readlink -e "${tool%/*}"/...)
-       . "$tool"/lib/install.sh
+       . "$tool"/lib/tool/admin/lib/install.sh
 # ACTION install ./etc/nginx/org/heureux-cyclage/
        content=$("$tool"/cat etc/nginx/org/heureux-cyclage/key.pem)
-       "$tool"/ssh-sudo install -m 400 -o root -g root /dev/stdin \
+       "$tool"/ssh-sudo install -d -m 755 -o root -g root \
+        /etc/nginx/org \
+        /etc/nginx/org/heureux-cyclage \
+        "&&" \
+       $sudo install -m 400 -o root -g root /dev/stdin \
         /etc/nginx/org/heureux-cyclage/key.pem <<-EOF
                $content
                EOF