Next step is needed only during Preview period. It is also necessary to share SSH public key with us to be able to clone Sova powered Validator client or LiteServer sources.
Start the SSH agent in the background. Add your SSH private key to the SSH agent. Test the SSH connection to GitHub
$ eval "$(ssh-agent -s)" && ssh-keyscan github.com >> ~/.ssh/known_hosts
$ ssh-add ~/.ssh/ton_secure_key
$ ssh -T git@github.com
Hi YOUR_USERNAME! You've successfully authenticated, but GitHub does not provide shell access.
Navigate to the TON source directory
cd /usr/src/ton
It is necessary to share SSH public key with us to be able to clone Sova powered Validator client or LiteServer sources.
Fetch the latest changes from the remote repository and merge them
Use sudo -E for preserves the user's environment variables while executing a command with elevated privileges.
After success build, change ton global configuration file.
By default, it is located at:
nano /usr/bin/ton/global.config.json
If you already have global.config.json with sova's key, don't forget to make a backup before copying. We also recommend making a backup using mytonctrl command create_backup
Stop TON node and Mytoncore services
systemctl stop validator
systemctl stop mytoncore
Copy the build directory content to the /usr/bin/ton directory