small fix

This commit is contained in:
vvzvlad 2023-04-16 23:03:06 +07:00
parent 840a5d97b0
commit 36f16e38d4

View File

@ -55,10 +55,10 @@ def set_hostname(c):
c.run(f'hostnamectl set-hostname {args.device_new_name}-{device_short_sn}') c.run(f'hostnamectl set-hostname {args.device_new_name}-{device_short_sn}')
def save_hostname(c): 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): 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): def prepare_packages_wb(c):