mirror of
https://github.com/YunoHost-Apps/castopod_ynh.git
synced 2024-09-03 18:16:14 +02:00
Fix $data_dir permissions.
This commit is contained in:
parent
b6634f3a3b
commit
de7ace0fd5
3 changed files with 3 additions and 3 deletions
|
@ -5,7 +5,7 @@ name = "Castopod"
|
||||||
description.en = "Hosting platform made for podcasters"
|
description.en = "Hosting platform made for podcasters"
|
||||||
description.fr = "Plateforme d'hébergement conçue pour les podcasteurs"
|
description.fr = "Plateforme d'hébergement conçue pour les podcasteurs"
|
||||||
|
|
||||||
version = "1.6.5~ynh1"
|
version = "1.6.5~ynh2"
|
||||||
|
|
||||||
maintainers = ["eric_G"]
|
maintainers = ["eric_G"]
|
||||||
|
|
||||||
|
|
|
@ -72,7 +72,7 @@ chown $app:www-data "$install_dir/.env"
|
||||||
mkdir -p $data_dir/media
|
mkdir -p $data_dir/media
|
||||||
cp -rf $install_dir/public/media/* $data_dir/media
|
cp -rf $install_dir/public/media/* $data_dir/media
|
||||||
chmod -R 750 $data_dir
|
chmod -R 750 $data_dir
|
||||||
chgrp -R www-data $data_dir
|
chown -R $app:www-data $data_dir
|
||||||
|
|
||||||
ynh_secure_remove --file="$install_dir/public/media"
|
ynh_secure_remove --file="$install_dir/public/media"
|
||||||
|
|
||||||
|
|
|
@ -47,7 +47,7 @@ if ynh_compare_current_package_version --comparison le --version "1.1.2~ynh2"; t
|
||||||
mkdir -p $data_dir/media
|
mkdir -p $data_dir/media
|
||||||
cp -rf $install_dir/public/media/* $data_dir/media
|
cp -rf $install_dir/public/media/* $data_dir/media
|
||||||
chmod -R 750 $data_dir
|
chmod -R 750 $data_dir
|
||||||
chgrp -R www-data $data_dir
|
chown -R $app:www-data $data_dir
|
||||||
|
|
||||||
ynh_secure_remove --file="$install_dir/public/media"
|
ynh_secure_remove --file="$install_dir/public/media"
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue