1
0
Fork 0
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:
ericgaspar 2021-09-10 19:32:26 +02:00
parent 2860238b36
commit 832a6f1292
No known key found for this signature in database
GPG key ID: 574F281483054D44

View file

@ -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