mirror of
https://gitlab.com/hacklab01/pivilion.git
synced 2026-08-06 16:08:22 +00:00
13 lines
466 B
Bash
Executable file
13 lines
466 B
Bash
Executable file
#!/bin/bash
|
|
set -euo pipefail
|
|
source /usr/local/lib/pivilion/common.sh
|
|
[ "$(id -u)" -eq 0 ] || exec sudo "$0" "$@"
|
|
pivilion_load_config
|
|
pivilion_set_mode onion
|
|
rm -f "$PIVILION_WEBROOT/gen/.htaccess"
|
|
echo "Pivilion will start in onion mode after the next reboot."
|
|
if [ -s "$PIVILION_DIR/torname" ]; then
|
|
printf 'Your onion domain is %s\n' "$(tr -d '\r\n' < "$PIVILION_DIR/torname")"
|
|
else
|
|
echo "The onion domain will appear after Tor starts successfully."
|
|
fi
|