Inital Commit
All checks were successful
Reprepro Wrapper / Reprepro Wrapper [arm64] (push) Successful in 12s
Reprepro Wrapper / Reprepro Wrapper [amd64] (push) Successful in 11s

This commit is contained in:
Cantibra
2025-10-26 21:11:05 +01:00
commit d59fb7ee55
20 changed files with 1285 additions and 0 deletions

View File

@@ -0,0 +1,35 @@
#!/usr/bin/bash
###
#
# Options Section
#
###
set -e
set -o pipefail
###
#
# Variable Section
#
###
OUTDIR=$(/usr/bin/grep 'outdir' '/etc/reprepro/options' | /usr/bin/sed --expression='s/outdir //')
MORGUE="${OUTDIR}/morgue"
###
#
# Runtime Environment
#
###
if [[ ! -d "${MORGUE}" ]]; then
/usr/bin/install --directory "${MORGUE}"
exit 0
fi
/usr/bin/rm --force --recursive "${MORGUE}"/*
exit 0