#!/bin/bash
#
# Univention Print Server
#  wrapper script for lpadmin
#
# SPDX-FileCopyrightText: 2004-2025 Univention GmbH
# SPDX-License-Identifier: AGPL-3.0-only

if [ -d /var/cache/univention-printserver ]; then
	for file in /var/cache/univention-printserver/*.sh; do
		[ -x "$file" ] || continue
		echo "execute $file"
		${file}
		if [ $? = 0 ]; then
			rm -f ${file}
		fi
	done
fi

