eole-gitea/posttemplate/01-gitea-nginx
2018-10-30 14:50:33 +01:00

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