diff --git a/2.Common_services/7.letsencrypt/0_setup.sh b/2.Common_services/7.letsencrypt/0_setup.sh index d49c83cccd80284c4e608b0c0666fd93bb1c42ab..d74d25c1fb7e7486fdefadcbb69d4b3972ded291 100644 --- a/2.Common_services/7.letsencrypt/0_setup.sh +++ b/2.Common_services/7.letsencrypt/0_setup.sh @@ -1,3 +1,20 @@ +#!/bin/bash +# automate letsencrypt certificate generation and authentication +# Copyright (C) 1993-2993 Hugo Mangeart + +# This program is free software: you can redistribute it and/or modify +# it under the terms of the GNU General Public License as published by +# the Free Software Foundation, either version 3 of the License, or +# (at your option) any later version. + +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU General Public License for more details. + +# You should have received a copy of the GNU General Public License +# along with this program. If not, see <http://www.gnu.org/licenses/>. + trap "cp /tmp/{mediaserver-msuser.conf,skyreach.conf,msmonitor.conf} /etc/nginx/sites-available/; exit 255" ERR source /root/envsetup/global-conf.sh LE_DIR="/etc/letsencrypt/live/"