mirror of
https://github.com/YunoHost/yunohost.git
synced 2024-09-03 20:06:10 +02:00
[fix] Permission issue on install of some apps 778
This commit is contained in:
parent
4daaba82d6
commit
cc77cd788d
1 changed files with 9 additions and 2 deletions
|
@ -70,6 +70,13 @@ ynh_bind_or_cp() {
|
||||||
# usage: ynh_mkdir_tmp
|
# usage: ynh_mkdir_tmp
|
||||||
# | ret: the created directory path
|
# | ret: the created directory path
|
||||||
ynh_mkdir_tmp() {
|
ynh_mkdir_tmp() {
|
||||||
echo "This helper is deprecated, you should use 'mktemp -d' instead." >&2
|
echo "The helper ynh_mkdir_tmp is deprecated." >&2
|
||||||
mktemp -d
|
echo "You should use 'mktemp -d' instead and manage permissions \
|
||||||
|
properly with chmod/chown." >&2
|
||||||
|
local TMP_DIR=$(mktemp -d)
|
||||||
|
|
||||||
|
# Give rights to other users could be a security risk.
|
||||||
|
# But for retrocompatibility we need it. (This helpers is deprecated)
|
||||||
|
chmod 755 $TMP_DIR
|
||||||
|
echo $TMP_DIR
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue