mirror of
https://github.com/YunoHost-Apps/nextcloud_ynh.git
synced 2024-09-03 19:55:57 +02:00
Update install
This commit is contained in:
parent
2860238b36
commit
832a6f1292
1 changed files with 4 additions and 5 deletions
|
@ -138,15 +138,10 @@ ynh_script_progression --message="Creating a data directory..." --weight=1
|
|||
|
||||
# Define app's data directory
|
||||
datadir="/home/yunohost.app/$app/data"
|
||||
ynh_app_setting_set --app=$app --key=datadir --value=$datadir
|
||||
|
||||
# Create app folders
|
||||
mkdir -p "$datadir"
|
||||
|
||||
chmod 750 "$datadir"
|
||||
chmod -R o-rwx "$datadir"
|
||||
chown -R $app:www-data "$datadir"
|
||||
|
||||
#=================================================
|
||||
# INSTALL NEXTCLOUD
|
||||
#=================================================
|
||||
|
@ -312,6 +307,10 @@ ynh_multimedia_addaccess $app
|
|||
# SECURE FILES AND DIRECTORIES
|
||||
#=================================================
|
||||
|
||||
chmod 750 "$datadir"
|
||||
chmod -R o-rwx "$datadir"
|
||||
chown -R $app:www-data "$datadir"
|
||||
|
||||
# # Fix app ownerships & permissions
|
||||
# chown -R $app: "$final_path" "$datadir"
|
||||
# find $final_path/ -type f -print0 | xargs -0 chmod 0644
|
||||
|
|
Loading…
Add table
Reference in a new issue