#!/bin/bash

# Define the file path
file_path="/app/Web/public/File/AccountSetting.json"

# Reset the account and password to "root"
echo '{"Manager":{"Account":"root","Password":"root"}}' > $file_path

# Extract and display the current account and password
account=$(grep -oP '(?<="Account":")[^"]*' $file_path)
password=$(grep -oP '(?<="Password":")[^"]*' $file_path)

echo "Current Account: $account"
echo "Current Password: $password"