diff --git a/scripts/install b/scripts/install index d47b35b..7ef81b1 100755 --- a/scripts/install +++ b/scripts/install @@ -66,9 +66,13 @@ ynh_script_progression --message="Creating a data directory..." --weight=1 mkdir -p $data_dir/uploads mkdir -p $data_dir/uploads/{big,import,medium,raw,small,thumb} -chmod 770 "$data_dir/uploads/" -chmod -R o-rwx "$data_dir/uploads/" -chown -R $app:$app "$data_dir/uploads/" +#chmod 770 "$data_dir/uploads/" +#chmod -R o-rwx "$data_dir/uploads/" +#chown -R $app:$app "$data_dir/uploads/" + +chgrp $app -R $install_dir/storage $install_dir/public/dist $install_dir/public/sym $data_dir/uploads +chmod -R 2775 $install_dir/storage/* $install_dir/app/* $install_dir/public/dist $install_dir/public/sym $data_dir/uploads $install_dir/bootstrap/ +chmod 2775 $install_dir/. #================================================= # INSTALL APP WITH COMPOSER @@ -102,11 +106,6 @@ popd # Setup custom user.css file ynh_add_config --template="../conf/user.css.example" --destination="$install_dir/public/dist/user.css" - -chgrp $app -R $install_dir/storage $install_dir/public/dist $install_dir/public/sym $data_dir/uploads -chmod -R 2775 $install_dir/storage/* $install_dir/app/* $install_dir/public/dist $install_dir/public/sym $data_dir/uploads $install_dir/bootstrap/ -chmod 2775 $install_dir/. - #================================================= # END OF SCRIPT #=================================================