jenkins: set hostname on startup

old-commit-hash: 8ee07def5c8b21c479b9f342ba490887237b2d0f
This commit is contained in:
Adeeb Shihadeh
2022-11-21 21:18:35 -08:00
parent f4a6804517
commit cc8025894b
+1
View File
@@ -29,6 +29,7 @@ sudo abctl --set_success
# patch sshd config
sudo mount -o rw,remount /
echo tici-$(cat /proc/cmdline | sed -e 's/^.*androidboot.serialno=//' -e 's/ .*$//') | sudo tee /etc/hostname
sudo sed -i "s,/data/params/d/GithubSshKeys,/usr/comma/setup_keys," /etc/ssh/sshd_config
sudo systemctl daemon-reload
sudo systemctl restart ssh