eole-gitea/posttemplate/01-gitea-nginx

12 lines
253 B
Bash
Executable File

#!/bin/bash
ENABLE=`CreoleGet activer_gitea 'non'`
if [ -L /etc/nginx/sites-enabled/gitea ];then
rm -f /etc/nginx/sites-enabled/gitea
fi
if [ "${ENABLE}" = 'oui' ];then
ln -s /etc/nginx/sites-available/gitea /etc/nginx/sites-enabled/gitea
fi