mirror of
https://codeberg.org/kiss-community/kiss
synced 2024-12-25 16:40:07 -07:00
Merge pull request #30 from konimex/master
cache: set sticky bit too to the children dirs
This commit is contained in:
commit
8581b4a3d1
7
kiss
7
kiss
@ -130,7 +130,9 @@ pkg_sources() {
|
|||||||
# Store each downloaded source in named after the package it
|
# Store each downloaded source in named after the package it
|
||||||
# belongs to. This avoid conflicts between two packages having a
|
# belongs to. This avoid conflicts between two packages having a
|
||||||
# source of the same name.
|
# source of the same name.
|
||||||
mkdir -p "$src_dir/$1" && cd "$src_dir/$1"
|
mkdir -p "$src_dir/$1"
|
||||||
|
chmod "$src_dir/$1"
|
||||||
|
cd "$src_dir/$1"
|
||||||
|
|
||||||
# Find the package's repository files. This needs to keep
|
# Find the package's repository files. This needs to keep
|
||||||
# happening as we can't store this data in any kind of data
|
# happening as we can't store this data in any kind of data
|
||||||
@ -1028,6 +1030,9 @@ main() {
|
|||||||
"${bin_dir:=$cac_dir/bin}" \
|
"${bin_dir:=$cac_dir/bin}" \
|
||||||
|| die "Couldn't create cache directories."
|
|| die "Couldn't create cache directories."
|
||||||
|
|
||||||
|
# Set sticky bit in the "permanent" directories so users can write to it.
|
||||||
|
chmod 1777 "$cac_dir" "$src_dir" "$bin_dir"
|
||||||
|
|
||||||
args "$@"
|
args "$@"
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user