diff --git a/ct/apache-guacamole.sh b/ct/apache-guacamole.sh index be8057d79..36f8698b8 100644 --- a/ct/apache-guacamole.sh +++ b/ct/apache-guacamole.sh @@ -1,5 +1,5 @@ #!/usr/bin/env bash -source <(curl -s https://raw.githubusercontent.com/community-scripts/ProxmoxVE/refs/heads/main/misc/build.func) +source <(curl -s https://raw.githubusercontent.com/asylumexp/Proxmox/refs/heads/main/misc/build.func) # Copyright (c) 2021-2025 community-scripts ORG # Author: Michel Roegl-Brunner (michelroegl-brunner) # License: MIT | https://github.com/asylumexp/Proxmox/raw/main/LICENSE diff --git a/ct/ghost.sh b/ct/ghost.sh index 29f748c09..abd90d830 100644 --- a/ct/ghost.sh +++ b/ct/ghost.sh @@ -1,5 +1,5 @@ #!/usr/bin/env bash -source <(curl -s https://raw.githubusercontent.com/community-scripts/ProxmoxVE/main/misc/build.func) +source <(curl -s https://raw.githubusercontent.com/asylumexp/Proxmox/main/misc/build.func) # Copyright (c) 2021-2025 community-scripts ORG # Author: fabrice1236 # License: MIT | https://github.com/community-scripts/ProxmoxVE/raw/main/LICENSE diff --git a/ct/prometheus-alertmanager.sh b/ct/prometheus-alertmanager.sh index adcd77a46..826e8a144 100755 --- a/ct/prometheus-alertmanager.sh +++ b/ct/prometheus-alertmanager.sh @@ -1,5 +1,5 @@ #!/usr/bin/env bash -source <(curl -s https://raw.githubusercontent.com/community-scripts/ProxmoxVE/main/misc/build.func) +source <(curl -s https://raw.githubusercontent.com/asylumexp/Proxmox/main/misc/build.func) # Copyright (c) 2021-2025 community-scripts ORG # Author: Andy Grunwald (andygrunwald) # License: MIT | https://github.com/community-scripts/ProxmoxVE/raw/main/LICENSE diff --git a/ct/ps5-mqtt.sh b/ct/ps5-mqtt.sh index 98e751e4f..0d089a659 100644 --- a/ct/ps5-mqtt.sh +++ b/ct/ps5-mqtt.sh @@ -1,5 +1,5 @@ #!/usr/bin/env bash -source <(curl -s https://raw.githubusercontent.com/community-scripts/ProxmoxVE/main/misc/build.func) +source <(curl -s https://raw.githubusercontent.com/asylumexp/Proxmox/main/misc/build.func) # Copyright (c) 2021-2025 community-scripts ORG # Author: liecno # License: MIT | https://github.com/community-scripts/ProxmoxVE/raw/main/LICENSE diff --git a/script.sh b/script.sh deleted file mode 100644 index 86260c908..000000000 --- a/script.sh +++ /dev/null @@ -1,58 +0,0 @@ -import os -import subprocess - -# Define paths -scripts_dir = "./scripts" # Replace with your scripts directory -succeeded_file = "./succeeded" -fails_file = "./fails" - -# Ensure log files exist -open(succeeded_file, 'a').close() -open(fails_file, 'a').close() - -# Function to extract APP name from a script -def get_app_name(script_path): - try: - with open(script_path, 'r') as file: - for line in file: - if line.startswith("APP="): - return line.split("=", 1)[1].strip().strip('"') - except Exception as e: - print(f"Error reading {script_path}: {e}") - return None - -# Function to execute a script -def execute_script(script_path): - try: - result = subprocess.run(["bash", script_path], check=True, stdout=subprocess.PIPE, stderr=subprocess.PIPE) - return True, result.stdout.decode() - except subprocess.CalledProcessError as e: - return False, e.stderr.decode() - -# Iterate over scripts in the directory -for script_name in os.listdir(scripts_dir): - script_path = os.path.join(scripts_dir, script_name) - - if not os.path.isfile(script_path): - continue - - app_name = get_app_name(script_path) - - if app_name is None: - print(f"No APP name found in {script_name}, skipping.") - continue - - print(f"Processing {script_name} (APP={app_name})...") - - success, output = execute_script(script_path) - - if success: - print(f"{app_name} succeeded.") - with open(succeeded_file, 'a') as sf: - sf.write(app_name + "\n") - else: - print(f"{app_name} failed: {output}") - with open(fails_file, 'a') as ff: - ff.write(app_name + "\n") - -print("Processing complete.")