Add canonical boot configuration synchronization

This commit is contained in:
v3d 2026-06-30 16:29:51 +02:00
parent 254a9b9cf3
commit eda151065c
14 changed files with 424 additions and 50 deletions

View file

@ -3,7 +3,7 @@ set -euo pipefail
source /usr/local/lib/pivilion/common.sh
[ "$(id -u)" -eq 0 ] || exec sudo "$0" "$@"
pivilion_load_config
pivilion_set_mode onion
/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")"