mirror of
https://gitlab.com/hacklab01/pivilion.git
synced 2026-08-06 16:08:22 +00:00
12 lines
465 B
Bash
Executable file
12 lines
465 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
|
|
/usr/local/lib/pivilion/config-sync.sh set PIVILION_MODE onion
|
|
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
|