debian: Skips deploy-hook when there is no hook available.
This commit is contained in:
parent
b7eda8df7a
commit
be56521267
|
@ -50,13 +50,18 @@ if [ -f /etc/nginx/sites-enabled/$DOMAIN.conf ] ; then
|
||||||
cp /usr/share/jitsi-meet-turnserver/coturn-certbot-deploy.sh $TURN_HOOK
|
cp /usr/share/jitsi-meet-turnserver/coturn-certbot-deploy.sh $TURN_HOOK
|
||||||
chmod u+x $TURN_HOOK
|
chmod u+x $TURN_HOOK
|
||||||
sed -i "s/jitsi-meet.example.com/$DOMAIN/g" $TURN_HOOK
|
sed -i "s/jitsi-meet.example.com/$DOMAIN/g" $TURN_HOOK
|
||||||
fi
|
|
||||||
|
|
||||||
./certbot-auto certonly --noninteractive \
|
./certbot-auto certonly --noninteractive \
|
||||||
--webroot --webroot-path /usr/share/jitsi-meet \
|
--webroot --webroot-path /usr/share/jitsi-meet \
|
||||||
-d $DOMAIN \
|
-d $DOMAIN \
|
||||||
--agree-tos --email $EMAIL \
|
--agree-tos --email $EMAIL \
|
||||||
--deploy-hook $TURN_HOOK
|
--deploy-hook $TURN_HOOK
|
||||||
|
else
|
||||||
|
./certbot-auto certonly --noninteractive \
|
||||||
|
--webroot --webroot-path /usr/share/jitsi-meet \
|
||||||
|
-d $DOMAIN \
|
||||||
|
--agree-tos --email $EMAIL
|
||||||
|
fi
|
||||||
|
|
||||||
echo "Configuring nginx"
|
echo "Configuring nginx"
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue