Files

4 lines
74 B
Bash

h=$(state_get hostname)
[ -n "$h" ] && hostnamectl set-hostname "$h"
true