🗃️ Committing everything that changed 🗃️

rootfs/usr/local/etc/docker/init.d/zz-nginx.sh
This commit is contained in:
casjay 2025-05-01 12:17:50 -04:00
parent b445cbc0d5
commit a1bb44098a
Signed by untrusted user who does not match committer: jason
GPG Key ID: 1AB309F42A764145

View File

@ -246,8 +246,12 @@ __update_conf_files() {
# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
# define actions
while [ -f "/tmp/init_tor_services" ]; do sleep 5; done
for onion_site in "/run/tor/sites"/*; do
while [ -f "/tmp/init_tor_services" ]; do
echo "waiting for tor to start"
sleep 5
done
for site in "/run/tor/sites"/*; do
onion_site="$(basename -- $site)"
mkdir -p "/data/htdocs/onions/$onion_site"
if [ "$(ls -A "/data/htdocs/onions/$onion_site" | wc -l)" -eq 0 ]; then
cp -Rf "/usr/share/httpd/default/hidden_service.html" "/data/htdocs/onions/$onion_site/index.html"