From 36f16e38d407a62cfed523a68d437e090c554932 Mon Sep 17 00:00:00 2001 From: vvzvlad Date: Sun, 16 Apr 2023 23:03:06 +0700 Subject: [PATCH] small fix --- vestasync.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/vestasync.py b/vestasync.py index 8e36e96..d9643d4 100755 --- a/vestasync.py +++ b/vestasync.py @@ -55,10 +55,10 @@ def set_hostname(c): c.run(f'hostnamectl set-hostname {args.device_new_name}-{device_short_sn}') def save_hostname(c): - c.run(f'echo {hostname} > /mnt/data/etc/vestasync/hostname') + c.run(f'echo $(hostname) > /mnt/data/etc/vestasync/hostname') def restore_hostname(c): - c.run(f'hostnamectl set-hostname `cat /mnt/data/etc/vestasync/hostname`') + c.run(f'hostnamectl set-hostname $(cat /mnt/data/etc/vestasync/hostname)') def prepare_packages_wb(c):