FIX: Changed script checking

This commit is contained in:
Álvaro Leiva 2025-03-24 15:05:34 +01:00 committed by Marc Koch
parent 0bba96d997
commit aa8be69aea
Signed by: marc.koch
GPG key ID: 12406554CFB028B9

View file

@ -87,7 +87,7 @@ def create_config_file(dest: Path):
def create_cron_job(cron_job: str, config_file: Path): def create_cron_job(cron_job: str, config_file: Path):
# Check if the script exists and its executable # Check if the script exists and its executable
if not shutil.which("test1"): if not shutil.which(__package__):
print( print(
f"No executable found, please add this to your crontab manually: '/path/to/adgroupsync --conf {config_file} >/dev/null 2>&1'" f"No executable found, please add this to your crontab manually: '/path/to/adgroupsync --conf {config_file} >/dev/null 2>&1'"
) )