kiss: Prevent sticky directories

This commit is contained in:
Dylan Araps 2020-01-21 02:19:06 +02:00
parent 2bb1bbcc0a
commit d751733744
No known key found for this signature in database
GPG Key ID: 46D62DD9F1DE636E

5
kiss
View File

@ -774,8 +774,9 @@ pkg_install() {
# This is repeated multiple times. Better to make it a function. # This is repeated multiple times. Better to make it a function.
pkg_rsync() { pkg_rsync() {
rsync --chown=root:root -WhHKa --no-compress "$1" --exclude /etc \ rsync --chown=root:root --chmod=Du-s,Dg-s,Do-s \
"$tar_dir/$pkg_name/" "$KISS_ROOT/" -WhHKa --no-compress "$1" --exclude /etc \
"$tar_dir/$pkg_name/" "$KISS_ROOT/"
} }
# Install the package by using 'rsync' and overwrite any existing files # Install the package by using 'rsync' and overwrite any existing files