Compare commits
3 commits
25d3d380ea
...
f19b8ffec9
Author | SHA1 | Date | |
---|---|---|---|
Dryusdan | f19b8ffec9 | ||
Dryusdan | 3a39354d20 | ||
Dryusdan | 8d8431d31b |
|
@ -9,6 +9,7 @@ To use it, edit chroot.sh and edit 3 variables :
|
|||
| -------- | ----------- |
|
||||
| CHROOTPATH | The path where this script store all files, bin, lib needed to chroot website (create this before) |
|
||||
| ZONEINFO | The path where zoneinfo is stored. Find this with `find /usr -type d -name "zoneinfo"` |
|
||||
| LISTCHROOTFILE | The list file who contain all chrooted directory |
|
||||
|
||||
## Use``
|
||||
`bash chroot.sh --install` copy all dependencies and store it on CHROOTPATH.
|
||||
|
|
|
@ -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…
Reference in a new issue