1
0
mirror of https://github.com/mail-in-a-box/mailinabox.git synced 2024-11-23 02:27:05 +00:00

Adding symbolic links in tools/web_update

This commit is contained in:
Justus Wingert 2023-08-14 16:11:58 +02:00 committed by GitHub
parent d29b502369
commit 5aa23e3420
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1,2 +1,9 @@
#!/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