mirror of
https://github.com/khuedoan/homelab.git
synced 2025-03-10 04:47:09 +07:00
build(script/configure): move default values to top
This commit is contained in:
parent
e59ed274ad
commit
55c625559f
@ -11,6 +11,10 @@ import os
|
||||
import platform
|
||||
import sys
|
||||
|
||||
editor = os.getenv('EDITOR')
|
||||
seed_repo = "github.com/khuedoan/homelab"
|
||||
domain = "khuedoan.com"
|
||||
|
||||
if sys.version_info < (3, 10, 0):
|
||||
raise Exception("Must be using Python >= 3.10.0")
|
||||
|
||||
@ -18,16 +22,13 @@ if platform.system() != 'Linux':
|
||||
raise Exception("Only Linux is supported, please us a Linux VM or switch operating system")
|
||||
|
||||
# confirm text editor
|
||||
editor = os.getenv('EDITOR')
|
||||
editor = str(input(f"Text editor ({editor}): ") or editor)
|
||||
|
||||
# Replace seed repo
|
||||
seed_repo = "github.com/khuedoan/homelab"
|
||||
seed_repo = str(input(f"Enter seed repo ({seed_repo}): ") or seed_repo)
|
||||
os.system(f"./scripts/replace-gitops-repo {seed_repo}")
|
||||
|
||||
# Replace domain
|
||||
domain = "khuedoan.com"
|
||||
domain = str(input(f"Enter your domain ({domain}): ") or domain)
|
||||
os.system(f"./scripts/replace-domain {domain}")
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user