More
This commit is contained in:
17
setup_system.py
Normal file
17
setup_system.py
Normal file
@@ -0,0 +1,17 @@
|
||||
import sys
|
||||
from utils import choice_files, copy_with_structure, require_root, log_info, log_error, CYAN, RESET
|
||||
|
||||
SRC_DIR = "system_files"
|
||||
DST_DIR = "/"
|
||||
CHOICES = {}
|
||||
|
||||
|
||||
def main():
|
||||
require_root()
|
||||
override_all = input(f"{CYAN}Override all existing system files? (Y/N): {RESET}").strip().lower() == 'y'
|
||||
choice_files(SRC_DIR, DST_DIR, CHOICES, override_all)
|
||||
copy_with_structure(SRC_DIR, DST_DIR, override_all)
|
||||
|
||||
|
||||
if __name__ == '__main__':
|
||||
main()
|
||||
Reference in New Issue
Block a user