2015-05-20 16:01:36 +02:00
|
|
|
#!/bin/bash
|
|
|
|
|
2018-10-30 16:32:58 +01:00
|
|
|
ENABLE=`CreoleGet activer_gitea 'non'`
|
2015-05-20 16:01:36 +02:00
|
|
|
|
2018-10-30 16:32:58 +01:00
|
|
|
if [ -L /etc/nginx/sites-enabled/gitea ];then
|
|
|
|
rm -f /etc/nginx/sites-enabled/gitea
|
2015-05-20 16:01:36 +02:00
|
|
|
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
|
2015-05-20 16:01:36 +02:00
|
|
|
fi
|