add the full borg binary
This commit is contained in:
parent
49948ca543
commit
1a6d03a432
|
@ -1,4 +1,5 @@
|
||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
PATH=$PATH:borg_interface/bin/
|
||||||
source borg_interface/bin/activate
|
source borg_interface/bin/activate
|
||||||
python3 borg_interface/main.py
|
python3 borg_interface/main.py
|
||||||
exit 0
|
exit 0
|
||||||
|
|
Binary file not shown.
|
@ -57,8 +57,7 @@ def mount_archive():
|
||||||
int_vars.mount_point = os.path.join('/tmp', archive_name)
|
int_vars.mount_point = os.path.join('/tmp', archive_name)
|
||||||
if not os.path.exists(int_vars.mount_point):
|
if not os.path.exists(int_vars.mount_point):
|
||||||
os.makedirs(int_vars.mount_point)
|
os.makedirs(int_vars.mount_point)
|
||||||
p = subprocess.Popen(['borg', 'mount', '::' + archive_name,
|
p = subprocess.Popen(['borg', 'mount', '::' + archive_name, int_vars.mount_point])
|
||||||
int_vars.mount_point])
|
|
||||||
p.wait()
|
p.wait()
|
||||||
draw_screen(2, 2, "Archive mounted at " + int_vars.mount_point + "/.")
|
draw_screen(2, 2, "Archive mounted at " + int_vars.mount_point + "/.")
|
||||||
screen.addstr(3, 2, "The archive will remain mounted as long this programm "
|
screen.addstr(3, 2, "The archive will remain mounted as long this programm "
|
||||||
|
|
Reference in New Issue