mirror of
https://github.com/YunoHost-Apps/roundcube_ynh.git
synced 2024-09-03 20:16:28 +02:00
Ensure the enigma directory exists befor chowning it
This commit is contained in:
parent
be6fea4e1d
commit
0239f79490
3 changed files with 3 additions and 0 deletions
|
@ -211,6 +211,7 @@ ynh_store_file_checksum --file="$rc_conf"
|
|||
|
||||
# Set permissions to app files
|
||||
chown -R root: "$final_path"
|
||||
mkdir -p "$final_path/plugins/enigma/home"
|
||||
chown -R $app: "$final_path/"{temp,logs,plugins/enigma/home}
|
||||
|
||||
#=================================================
|
||||
|
|
|
@ -67,6 +67,7 @@ ynh_system_user_create --username=$app
|
|||
|
||||
# Restore permissions on app files
|
||||
chown -R root: "$final_path"
|
||||
mkdir -p "$final_path/plugins/enigma/home"
|
||||
chown -R $app: "$final_path/"{temp,logs,plugins/enigma/home}
|
||||
|
||||
#=================================================
|
||||
|
|
|
@ -262,6 +262,7 @@ fi
|
|||
|
||||
# Set permissions to app files
|
||||
chown -R root: "$final_path"
|
||||
mkdir -p "$final_path/plugins/enigma/home"
|
||||
chown -R $app: "$final_path/"{temp,logs,plugins/enigma/home}
|
||||
|
||||
#=================================================
|
||||
|
|
Loading…
Reference in a new issue