Commit f2575c9
fix(install): write host.env (JHT_HOST_TYPE) on the manual install path too
run_host_setup_vps() returned early unless a --pairing-token was present
(desktop-provisioned path), so `curl install.sh | bash` (the manual/tech
VPS path) never ran host-setup.sh → ~/.jht/host.env was never written →
the wrapper exported JHT_HOST_TYPE=unknown → pid1 booted in mode=local →
it SKIPPED the entire cloud block (push daemon + pair-on-boot + the
"Sync now" handler). Net effect: cloud sync silently dead on every
manually-installed VPS (Sync-now inert, data only via manual push).
Generalised to run_host_setup(): runs on both paths. With --pairing-token
it forces --host-type=vps (no TTY to confirm); on the manual path it runs
host-setup with no flag → detect_vps() auto-detects and, with no TTY,
writes the detected JHT_HOST_TYPE without a prompt. Applied to both the
served copy (web/public) and scripts/.
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>1 parent 981d12c commit f2575c9
2 files changed
Lines changed: 54 additions & 28 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
843 | 843 | | |
844 | 844 | | |
845 | 845 | | |
846 | | - | |
847 | | - | |
848 | | - | |
849 | | - | |
850 | | - | |
851 | | - | |
852 | | - | |
| 846 | + | |
| 847 | + | |
| 848 | + | |
| 849 | + | |
| 850 | + | |
| 851 | + | |
| 852 | + | |
| 853 | + | |
| 854 | + | |
| 855 | + | |
| 856 | + | |
| 857 | + | |
853 | 858 | | |
854 | 859 | | |
855 | | - | |
| 860 | + | |
856 | 861 | | |
857 | 862 | | |
858 | 863 | | |
859 | | - | |
| 864 | + | |
860 | 865 | | |
861 | 866 | | |
862 | | - | |
863 | | - | |
864 | | - | |
| 867 | + | |
| 868 | + | |
| 869 | + | |
| 870 | + | |
| 871 | + | |
| 872 | + | |
| 873 | + | |
865 | 874 | | |
866 | | - | |
| 875 | + | |
| 876 | + | |
| 877 | + | |
| 878 | + | |
| 879 | + | |
867 | 880 | | |
868 | 881 | | |
869 | 882 | | |
| |||
953 | 966 | | |
954 | 967 | | |
955 | 968 | | |
956 | | - | |
| 969 | + | |
957 | 970 | | |
958 | 971 | | |
959 | 972 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
843 | 843 | | |
844 | 844 | | |
845 | 845 | | |
846 | | - | |
847 | | - | |
848 | | - | |
849 | | - | |
850 | | - | |
851 | | - | |
852 | | - | |
| 846 | + | |
| 847 | + | |
| 848 | + | |
| 849 | + | |
| 850 | + | |
| 851 | + | |
| 852 | + | |
| 853 | + | |
| 854 | + | |
| 855 | + | |
| 856 | + | |
| 857 | + | |
853 | 858 | | |
854 | 859 | | |
855 | | - | |
| 860 | + | |
856 | 861 | | |
857 | 862 | | |
858 | 863 | | |
859 | | - | |
| 864 | + | |
860 | 865 | | |
861 | 866 | | |
862 | | - | |
863 | | - | |
864 | | - | |
| 867 | + | |
| 868 | + | |
| 869 | + | |
| 870 | + | |
| 871 | + | |
| 872 | + | |
| 873 | + | |
865 | 874 | | |
866 | | - | |
| 875 | + | |
| 876 | + | |
| 877 | + | |
| 878 | + | |
| 879 | + | |
867 | 880 | | |
868 | 881 | | |
869 | 882 | | |
| |||
953 | 966 | | |
954 | 967 | | |
955 | 968 | | |
956 | | - | |
| 969 | + | |
957 | 970 | | |
958 | 971 | | |
959 | 972 | | |
| |||
0 commit comments