eole-gitea/posttemplate/01-gitea-nginx

12 lines
248 B
Bash
Executable File

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