mirror of
https://github.com/Start9Labs/start-os.git
synced 2026-03-30 04:01:58 +00:00
change hostname prefix from 'start9' to 'embassy' everywhere (#694)
* change 'start9-' to 'embassy-' for hostname * remove unused build script
This commit is contained in:
committed by
Aiden McClelland
parent
721d136d21
commit
0f03a2ab71
@@ -43,10 +43,10 @@ pub async fn get_id() -> Result<String, Error> {
|
||||
Ok(hex::encode(&res[0..4]))
|
||||
}
|
||||
|
||||
// cat /embassy-os/product_key.txt | shasum -a 256 | head -c 8 | awk '{print "start9-"$1}' | xargs hostnamectl set-hostname && systemctl restart avahi-daemon
|
||||
// cat /embassy-os/product_key.txt | shasum -a 256 | head -c 8 | awk '{print "embassy-"$1}' | xargs hostnamectl set-hostname && systemctl restart avahi-daemon
|
||||
#[instrument]
|
||||
pub async fn sync_hostname() -> Result<(), Error> {
|
||||
set_hostname(&format!("start9-{}", get_id().await?)).await?;
|
||||
set_hostname(&format!("embassy-{}", get_id().await?)).await?;
|
||||
Command::new("systemctl")
|
||||
.arg("restart")
|
||||
.arg("avahi-daemon")
|
||||
|
||||
Reference in New Issue
Block a user