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:
parent
deb66eaf9e
commit
f61a9c9cf4
3 changed files with 9 additions and 9 deletions
|
@ -111,7 +111,7 @@ pushd $final_path
|
|||
mkdir -p config
|
||||
popd
|
||||
|
||||
chmod -R 750 "$final_path"
|
||||
chmod 750 "$final_path"
|
||||
chmod -R o-rwx "$final_path"
|
||||
chown -R $app:www-data "$final_path"
|
||||
|
||||
|
@ -120,7 +120,7 @@ pushd $datadir
|
|||
mkdir -p static media music
|
||||
popd
|
||||
|
||||
chmod -R 750 "$datadir"
|
||||
chmod 750 "$datadir"
|
||||
chmod -R o-rwx "$datadir"
|
||||
chown -R $app:www-data "$datadir"
|
||||
|
||||
|
@ -192,7 +192,7 @@ pushd $final_path
|
|||
echo "yes" | python api/manage.py collectstatic
|
||||
popd
|
||||
|
||||
chmod -R 750 "$final_path"
|
||||
chmod 750 "$final_path"
|
||||
chmod -R o-rwx "$final_path"
|
||||
chown -R $app:www-data "$final_path"
|
||||
|
||||
|
|
|
@ -69,7 +69,7 @@ ynh_script_progression --message="Restoring the app main directory..."
|
|||
|
||||
ynh_restore_file --origin_path="$final_path"
|
||||
|
||||
chmod -R 750 "$final_path"
|
||||
chmod 750 "$final_path"
|
||||
chmod -R o-rwx "$final_path"
|
||||
chown -R $app:www-data "$final_path"
|
||||
|
||||
|
@ -87,7 +87,7 @@ pushd $datadir
|
|||
mkdir -p static media music
|
||||
popd
|
||||
|
||||
chmod -R 750 "$datadir"
|
||||
chmod 750 "$datadir"
|
||||
chmod -R o-rwx "$datadir"
|
||||
chown -R $app:www-data "$datadir"
|
||||
|
||||
|
|
|
@ -108,7 +108,7 @@ if [ -z "$datadir" ]; then
|
|||
mkdir -p static media music
|
||||
popd
|
||||
|
||||
chmod -R 750 "$datadir"
|
||||
chmod 750 "$datadir"
|
||||
chmod -R o-rwx "$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
|
||||
|
||||
chmod -R 750 "$datadir"
|
||||
chmod 750 "$datadir"
|
||||
chmod -R o-rwx "$datadir"
|
||||
chown -R $app:www-data "$datadir"
|
||||
|
||||
|
@ -165,7 +165,7 @@ then
|
|||
ynh_setup_source --dest_dir="$final_path/front" --source_id="front"
|
||||
fi
|
||||
|
||||
chmod -R 750 "$final_path"
|
||||
chmod 750 "$final_path"
|
||||
chmod -R o-rwx "$final_path"
|
||||
chown -R $app:www-data "$final_path"
|
||||
|
||||
|
@ -245,7 +245,7 @@ pushd $final_path
|
|||
python api/manage.py fw media generate-thumbnails
|
||||
popd
|
||||
|
||||
chmod -R 750 "$final_path"
|
||||
chmod 750 "$final_path"
|
||||
chmod -R o-rwx "$final_path"
|
||||
chown -R $app:www-data "$final_path"
|
||||
|
||||
|
|
Loading…
Reference in a new issue