You've already forked Reprepro-Wrapper
Inital Commit
This commit is contained in:
35
root/usr/lib/reprepro/morgue
Normal file
35
root/usr/lib/reprepro/morgue
Normal 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
|
||||
Reference in New Issue
Block a user