X-Git-Url: http://git.cyclocoop.org/?a=blobdiff_plain;f=etc%2Fnginx%2Fsite.d%2Froundcube%2Fremote.sh;fp=etc%2Fnginx%2Fsite.d%2Froundcube%2Fremote.sh;h=8f4128a8dc115a14de2766961613278fc8926871;hb=b75d4503ef9c919231c0c02daf5a1ed1e57c73af;hp=0000000000000000000000000000000000000000;hpb=4c57b350e0265cfadb9bbf95cd55ae491ee66820;p=lhc%2Fateliers.git diff --git a/etc/nginx/site.d/roundcube/remote.sh b/etc/nginx/site.d/roundcube/remote.sh new file mode 100644 index 0000000..8f4128a --- /dev/null +++ b/etc/nginx/site.d/roundcube/remote.sh @@ -0,0 +1,20 @@ +install -d -m 700 \ + "$tool"/var/sec \ + "$tool"/var/sec/"$site" +if test ! -e "$tool"/var/sec/"$site"/des_key.gpg + then gpg --encrypt $gpg_options -o "$tool"/var/sec/"$site"/des_key.gpg <<-EOF + $(stdbuf --output 0 tr -d -c '[:alnum:][:punct:]' <"${random:-/dev/urandom}" | tr -d "'" | head -c 24) + EOF + fi + +cat - <<-EOF | +