mirror of
https://github.com/YunoHost-Apps/nextcloud_ynh.git
synced 2024-09-03 19:55:57 +02:00
Fix
This commit is contained in:
parent
7bbf606c90
commit
8736fe6ae4
3 changed files with 5 additions and 12 deletions
|
@ -98,8 +98,7 @@ cp -a ../sources/patches_last_version/* ../sources/patches
|
|||
# Download, check integrity, uncompress and patch the source from app.src
|
||||
ynh_setup_source --dest_dir="$final_path"
|
||||
|
||||
find $final_path/ -type f -print0 | xargs -0 chmod 0644
|
||||
find $final_path/ -type d -print0 | xargs -0 chmod 0755
|
||||
chmod 755 "$final_path"
|
||||
chmod -R o-rwx "$final_path"
|
||||
chown -R $app: "$final_path"
|
||||
|
||||
|
@ -140,9 +139,8 @@ ynh_add_nginx_config
|
|||
datadir="/home/yunohost.app/$app/data"
|
||||
# Create app folders
|
||||
mkdir -p "$datadir"
|
||||
chmod 755 "$datadir"
|
||||
chown -R $app: "$datadir"
|
||||
find $datadir/ -type f -print0 | xargs -0 chmod 0640
|
||||
find $datadir/ -type d -print0 | xargs -0 chmod 0750
|
||||
|
||||
#=================================================
|
||||
# INSTALL NEXTCLOUD
|
||||
|
|
|
@ -74,8 +74,7 @@ ynh_script_progression --message="Restoring the app main directory..."
|
|||
|
||||
ynh_restore_file --origin_path="$final_path"
|
||||
|
||||
find $final_path/ -type f -print0 | xargs -0 chmod 0644
|
||||
find $final_path/ -type d -print0 | xargs -0 chmod 0755
|
||||
chmod 755 "$final_path"
|
||||
chmod -R o-rwx "$final_path"
|
||||
chown -R $app: "$final_path"
|
||||
|
||||
|
@ -133,8 +132,7 @@ ynh_restore_file --origin_path="$datadir" --not_mandatory
|
|||
|
||||
mkdir -p "$datadir"
|
||||
|
||||
find $datadir/ -type f -print0 | xargs -0 chmod 0640
|
||||
find $datadir/ -type d -print0 | xargs -0 chmod 0750
|
||||
chmod 755 "$datadir"
|
||||
chown -R $app: "$datadir"
|
||||
|
||||
#=================================================
|
||||
|
|
|
@ -406,10 +406,7 @@ EOF
|
|||
ynh_store_file_checksum --file="${final_path}/config/config.php"
|
||||
fi
|
||||
|
||||
find $final_path/ -type f -print0 | xargs -0 chmod 0644
|
||||
find $final_path/ -type d -print0 | xargs -0 chmod 0755
|
||||
find $datadir/ -type f -print0 | xargs -0 chmod 0640
|
||||
find $datadir/ -type d -print0 | xargs -0 chmod 0750
|
||||
chmod 755 "$final_path" "$datadir"
|
||||
chmod -R o-rwx "$final_path"
|
||||
chown -R $app: "$final_path" "$datadir"
|
||||
chmod 640 "$final_path/config/config.php"
|
||||
|
|
Loading…
Add table
Reference in a new issue