2014-07-08 00:34:38 +00:00
|
|
|
#!/bin/bash
|
2023-08-15 12:06:19 +00:00
|
|
|
rm -f /etc/nginx/conf.d/local.conf
|
2014-07-08 00:34:38 +00:00
|
|
|
curl -s -d POSTDATA --user $(</var/lib/mailinabox/api.key): http://127.0.0.1:10222/web/update
|
2023-08-14 14:11:58 +00:00
|
|
|
cd /etc/nginx/sites-available
|
2023-08-14 14:38:49 +00:00
|
|
|
for f in miab_*
|
2023-08-14 14:11:58 +00:00
|
|
|
do
|
2023-08-15 12:06:19 +00:00
|
|
|
if ! [ -f "/etc/nginx/sites-enabled/$f" ]; then
|
|
|
|
echo "Processing $f"
|
|
|
|
ln -s "/etc/nginx/sites-available/$f" "/etc/nginx/sites-enabled/$f"
|
|
|
|
fi
|
2023-08-14 14:11:58 +00:00
|
|
|
done
|
2023-08-15 12:06:19 +00:00
|
|
|
curl -s -d POSTDATA --user $(</var/lib/mailinabox/api.key): http://127.0.0.1:10222/web/update
|