jenkins: set hostname on startup

This commit is contained in:
Adeeb Shihadeh
2022-11-21 21:18:35 -08:00
parent c0c94b4961
commit 8ee07def5c
+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