mirror of
https://github.com/casjaysdevdocker/tor
synced 2025-06-27 15:48:57 -04:00
🗃️ Committing everything that changed 🗃️
All checks were successful
release-tag / release-image (push) Successful in 6m3s
All checks were successful
release-tag / release-image (push) Successful in 6m3s
rootfs/usr/local/etc/docker/init.d/zz-nginx.sh
This commit is contained in:
parent
111d6d79a0
commit
95d09c0cf5
@ -264,6 +264,7 @@ __update_conf_files() {
|
||||
echo "The tor server seems to have started "
|
||||
for site in "/run/tor/sites"/*; do
|
||||
onion_site="$(basename -- $site)"
|
||||
if [ "$default_host" != "$onion_site" ]; then
|
||||
mkdir -p "/data/htdocs/onions/$onion_site"
|
||||
if [ "$(ls -A "/data/htdocs/onions/$onion_site" | wc -l)" -eq 0 ]; then
|
||||
if [ -f "/usr/share/httpd/default/hidden_service.html" ]; then
|
||||
@ -281,6 +282,7 @@ __update_conf_files() {
|
||||
sed -i 's|imtulbcjer7mohs62lpycyod2c3pnil2x6xjirrojedbluh4d7z2g6ad|'$onion_site'|g' "/data/htdocs/onions/$onion_site/index.html"
|
||||
fi
|
||||
echo "Created $onion_site.onion in /data/htdocs/onions/$onion_site"
|
||||
fi
|
||||
done
|
||||
# allow custom functions
|
||||
if builtin type -t __update_conf_files_local | grep -q 'function'; then __update_conf_files_local; fi
|
||||
|
Loading…
x
Reference in New Issue
Block a user