From 2c4f09eb9bd7e78cb3f40c9816d782a9008e0aaf Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C3=89ric=20Gaspar?= <46165813+ericgaspar@users.noreply.github.com> Date: Wed, 8 Mar 2023 19:36:42 +0100 Subject: [PATCH] Update install --- scripts/install | 15 +++++++-------- 1 file changed, 7 insertions(+), 8 deletions(-) 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 #=================================================