Add list file of chrooted directory

pull/1/head
Dryusdan 2 years ago
parent 25d3d380ea
commit 8d8431d31b
  1. 3
      chroot.sh

@ -27,6 +27,7 @@ fatal() { echo -e "${RED}[FATAL] $* ${NC}" | logger --tag "${SCRIPTNAME}" --
LOCK="/var/lock/${SCRIPTNAME}.lock"
CHROOTPATH="/var/chroot"
ZONEINFO="/usr/share/zoneinfo"
LISTCHROOTFILE="/var/chroot/list"
function _USAGE
{
cat << EOF
@ -245,7 +246,7 @@ function _CONFIGURE
chmod 755 "${WEBCHROOT}/var/"
info "Add sticky bit"
chmod 1757 "${WEBCHROOT}/var/lib/php/sessions"
echo ${WEBCHROOT} >> ${LISTCHROOTFILE}
}
function _CLEAN

Loading…
Cancel
Save