1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/funkwhale_ynh.git synced 2024-09-03 18:36:24 +02:00

Fix recursive chmod

This commit is contained in:
yalh76 2021-04-17 18:31:25 +02:00
parent deb66eaf9e
commit f61a9c9cf4
3 changed files with 9 additions and 9 deletions

View file

@ -111,7 +111,7 @@ pushd $final_path
mkdir -p config mkdir -p config
popd popd
chmod -R 750 "$final_path" chmod 750 "$final_path"
chmod -R o-rwx "$final_path" chmod -R o-rwx "$final_path"
chown -R $app:www-data "$final_path" chown -R $app:www-data "$final_path"
@ -120,7 +120,7 @@ pushd $datadir
mkdir -p static media music mkdir -p static media music
popd popd
chmod -R 750 "$datadir" chmod 750 "$datadir"
chmod -R o-rwx "$datadir" chmod -R o-rwx "$datadir"
chown -R $app:www-data "$datadir" chown -R $app:www-data "$datadir"
@ -192,7 +192,7 @@ pushd $final_path
echo "yes" | python api/manage.py collectstatic echo "yes" | python api/manage.py collectstatic
popd popd
chmod -R 750 "$final_path" chmod 750 "$final_path"
chmod -R o-rwx "$final_path" chmod -R o-rwx "$final_path"
chown -R $app:www-data "$final_path" chown -R $app:www-data "$final_path"

View file

@ -69,7 +69,7 @@ ynh_script_progression --message="Restoring the app main directory..."
ynh_restore_file --origin_path="$final_path" ynh_restore_file --origin_path="$final_path"
chmod -R 750 "$final_path" chmod 750 "$final_path"
chmod -R o-rwx "$final_path" chmod -R o-rwx "$final_path"
chown -R $app:www-data "$final_path" chown -R $app:www-data "$final_path"
@ -87,7 +87,7 @@ pushd $datadir
mkdir -p static media music mkdir -p static media music
popd popd
chmod -R 750 "$datadir" chmod 750 "$datadir"
chmod -R o-rwx "$datadir" chmod -R o-rwx "$datadir"
chown -R $app:www-data "$datadir" chown -R $app:www-data "$datadir"

View file

@ -108,7 +108,7 @@ if [ -z "$datadir" ]; then
mkdir -p static media music mkdir -p static media music
popd popd
chmod -R 750 "$datadir" chmod 750 "$datadir"
chmod -R o-rwx "$datadir" chmod -R o-rwx "$datadir"
chown -R $app:www-data "$datadir" chown -R $app:www-data "$datadir"
@ -135,7 +135,7 @@ if [ -z "$datadir" ]; then
ynh_app_setting_set --app=$app --key=datadir --value=$datadir ynh_app_setting_set --app=$app --key=datadir --value=$datadir
chmod -R 750 "$datadir" chmod 750 "$datadir"
chmod -R o-rwx "$datadir" chmod -R o-rwx "$datadir"
chown -R $app:www-data "$datadir" chown -R $app:www-data "$datadir"
@ -165,7 +165,7 @@ then
ynh_setup_source --dest_dir="$final_path/front" --source_id="front" ynh_setup_source --dest_dir="$final_path/front" --source_id="front"
fi fi
chmod -R 750 "$final_path" chmod 750 "$final_path"
chmod -R o-rwx "$final_path" chmod -R o-rwx "$final_path"
chown -R $app:www-data "$final_path" chown -R $app:www-data "$final_path"
@ -245,7 +245,7 @@ pushd $final_path
python api/manage.py fw media generate-thumbnails python api/manage.py fw media generate-thumbnails
popd popd
chmod -R 750 "$final_path" chmod 750 "$final_path"
chmod -R o-rwx "$final_path" chmod -R o-rwx "$final_path"
chown -R $app:www-data "$final_path" chown -R $app:www-data "$final_path"