mirror of
https://github.com/vvzvlad/vestasync.git
synced 2024-12-27 04:31:01 +03:00
small fix
This commit is contained in:
parent
840a5d97b0
commit
36f16e38d4
@ -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):
|
||||||
|
Loading…
Reference in New Issue
Block a user