1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/nextcloud_ynh.git synced 2024-09-03 19:55:57 +02:00
nextcloud_ynh/hooks/post_user_create
Jérôme Lebleu 4fcbb58642 [enh] Rewrite install/remove script for ownCloud 9.0
ownCloud 9.0 comes with improved occ which allows to install easily from
the command-line. This install rewrite uses those new facilities and also uses
the config:import command to set system and LDAP configuration.
2016-04-02 11:43:48 +02:00

6 lines
96 B
Bash

#!/bin/bash
APP=${!#}
user=$1
sudo mkdir -p /home/$user
sudo setfacl -m g:$APP:rwx /home/$user