|
|
@ -271,6 +271,10 @@ if [ $user_home -eq 1 ]; then |
|
|
exec_occ files_external:list --output=json \ |
|
|
exec_occ files_external:list --output=json \ |
|
|
| grep -q '"storage":"\\\\OC\\\\Files\\\\Storage\\\\Local"' \ |
|
|
| grep -q '"storage":"\\\\OC\\\\Files\\\\Storage\\\\Local"' \ |
|
|
|| create_external_storage "/home/\$user" "Home" |
|
|
|| create_external_storage "/home/\$user" "Home" |
|
|
|
|
|
# Iterate over users to extend their home folder permissions |
|
|
|
|
|
for u in $(ynh_user_list); do |
|
|
|
|
|
setfacl -m g:$app:rwx "/home/$u" || true |
|
|
|
|
|
done |
|
|
fi |
|
|
fi |
|
|
|
|
|
|
|
|
#================================================= |
|
|
#================================================= |
|
|
@ -329,13 +333,6 @@ find ${datadir}/ -type d -print0 | xargs -0 chmod 0750 |
|
|
chmod 640 "${final_path}/config/config.php" |
|
|
chmod 640 "${final_path}/config/config.php" |
|
|
chmod 755 /home/yunohost.app |
|
|
chmod 755 /home/yunohost.app |
|
|
|
|
|
|
|
|
# Iterate over users to extend their home folder permissions - for the external |
|
|
|
|
|
# storage plugin usage - and create relevant Nextcloud directories |
|
|
|
|
|
for u in $(ynh_user_list); do |
|
|
|
|
|
mkdir -p "${datadir}/${u}" |
|
|
|
|
|
setfacl -m g:$app:rwx "/home/$u" || true |
|
|
|
|
|
done |
|
|
|
|
|
|
|
|
|
|
|
#================================================= |
|
|
#================================================= |
|
|
# WARNING ABOUT THIRD-PARTY APPS |
|
|
# WARNING ABOUT THIRD-PARTY APPS |
|
|
#================================================= |
|
|
#================================================= |
|
|
|