@ -15,11 +15,15 @@ from utils.loader import Loader
fromos.pathimportexists
fromos.pathimportexists
console=Console()
console=Console()
setup_done=exists(".setup-done-before")
setup_done=exists(".setup-block.txt")
ifsetup_done==True:
ifsetup_done==True:
console.log("[red]Setup was already completed! Please make sure you have to run this script again. If you have to, please delete the file .setup-done-before")
console.log("[red]Setup was already completed! Do you want to run the script again?")
exit()
run_again=input("> ")
ifrun_again=="y":
os.remove(".setup-block.txt")
else:
exit()
# These lines ensure the user:
# These lines ensure the user:
# - knows they are in setup mode
# - knows they are in setup mode
@ -71,6 +75,12 @@ else:
console.print("[bold green]Alright! Let's get started!")
console.print("[bold green]Alright! Let's get started!")
time.sleep(1)
time.sleep(1)
console.log("[green]Saving your old .env in .env-save credentials...")