mirror of
https://github.com/mail-in-a-box/mailinabox.git
synced 2024-11-24 02:37:05 +00:00
10 lines
285 B
Bash
Executable File
10 lines
285 B
Bash
Executable File
#!/bin/bash
|
|
curl -s -d POSTDATA --user $(</var/lib/mailinabox/api.key): http://127.0.0.1:10222/web/update
|
|
cd /etc/nginx/sites-available
|
|
for f in *
|
|
do
|
|
echo "Processing $f"
|
|
ln -s "/etc/nginx/sites-available/$f" "/etc/nginx/sites-enabled/$f"
|
|
done
|
|
rm -f /etc/nginx-sites-enabled/default
|