mirror of
https://github.com/YunoHost-Apps/castopod_ynh.git
synced 2024-09-03 18:16:14 +02:00
Fixup $data_dir permissions.
This commit is contained in:
parent
06bbc53838
commit
5a080fab29
2 changed files with 11 additions and 0 deletions
|
@ -69,6 +69,10 @@ ynh_add_config --template=".env.example" --destination="$install_dir/.env"
|
||||||
chmod 600 $install_dir/.env
|
chmod 600 $install_dir/.env
|
||||||
chown $app:www-data "$install_dir/.env"
|
chown $app:www-data "$install_dir/.env"
|
||||||
|
|
||||||
|
mkdir -p $data_dir/media
|
||||||
|
chmod -R 644 $data_dir
|
||||||
|
chgrp -R www-data $data_dir
|
||||||
|
|
||||||
#=================================================
|
#=================================================
|
||||||
# RUN MIGRATIONS
|
# RUN MIGRATIONS
|
||||||
#=================================================
|
#=================================================
|
||||||
|
|
|
@ -89,6 +89,13 @@ pushd $install_dir
|
||||||
ynh_exec_warn_less ynh_exec_as $app php${phpversion} spark cache:clear
|
ynh_exec_warn_less ynh_exec_as $app php${phpversion} spark cache:clear
|
||||||
popd
|
popd
|
||||||
|
|
||||||
|
if [ $(ynh_compare_current_package_version --comparison le --version "1.1.2~ynh2") ]; then
|
||||||
|
ynh_script_progression --message="Moving data..." --weight=3
|
||||||
|
mv $install_dir/public/media $data_dir
|
||||||
|
chmod -R 644 $data_dir
|
||||||
|
chgrp -R www-data $data_dir
|
||||||
|
endif
|
||||||
|
|
||||||
#=================================================
|
#=================================================
|
||||||
# END OF SCRIPT
|
# END OF SCRIPT
|
||||||
#=================================================
|
#=================================================
|
||||||
|
|
Loading…
Add table
Reference in a new issue