eole-gitea/posttemplate/01-gitea-nginx

12 lines
253 B
Plaintext
Raw Normal View History

#!/bin/bash
2018-10-30 16:32:58 +01:00
ENABLE=`CreoleGet activer_gitea 'non'`
2018-10-30 16:32:58 +01:00
if [ -L /etc/nginx/sites-enabled/gitea ];then
rm -f /etc/nginx/sites-enabled/gitea
fi
if [ "${ENABLE}" = 'oui' ];then
2018-10-30 16:32:58 +01:00
ln -s /etc/nginx/sites-available/gitea /etc/nginx/sites-enabled/gitea
fi