mirror of
https://github.com/YunoHost-Apps/castopod_ynh.git
synced 2024-09-03 18:16:14 +02:00
Fix paths.
This commit is contained in:
parent
e4bbdef6c9
commit
c0e607499b
2 changed files with 5 additions and 5 deletions
|
@ -69,8 +69,8 @@ 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
|
mv $install_dir/public/media $data_dir
|
||||||
chmod -R 644 $data_dir
|
chmod -R 750 $data_dir
|
||||||
chgrp -R www-data $data_dir
|
chgrp -R www-data $data_dir
|
||||||
|
|
||||||
#=================================================
|
#=================================================
|
||||||
|
|
|
@ -45,7 +45,7 @@ fi
|
||||||
if ynh_compare_current_package_version --comparison le --version "1.1.2~ynh2"; then
|
if ynh_compare_current_package_version --comparison le --version "1.1.2~ynh2"; then
|
||||||
ynh_script_progression --message="Moving data..." --weight=3
|
ynh_script_progression --message="Moving data..." --weight=3
|
||||||
mv $install_dir/public/media $data_dir
|
mv $install_dir/public/media $data_dir
|
||||||
chmod -R 644 $data_dir
|
chmod -R 750 $data_dir
|
||||||
chgrp -R www-data $data_dir
|
chgrp -R www-data $data_dir
|
||||||
|
|
||||||
ynh_script_progression --message="Fixing migrations..." --weight=1
|
ynh_script_progression --message="Fixing migrations..." --weight=1
|
||||||
|
@ -105,9 +105,9 @@ popd
|
||||||
|
|
||||||
if ynh_compare_current_package_version --comparison le --version "1.6.5~ynh1"; then
|
if ynh_compare_current_package_version --comparison le --version "1.6.5~ynh1"; then
|
||||||
# cf https://code.castopod.org/adaures/castopod/-/releases/v1.5.2
|
# cf https://code.castopod.org/adaures/castopod/-/releases/v1.5.2
|
||||||
ynh_mysql_connect_as --user=$db_user --password=$db_pwd --database=$db_name < "../conf/v1.5.2.sql"
|
ynh_mysql_connect_as --user=$db_user --password=$db_pwd --database=$db_name < "../conf/sql/v1.5.2.sql"
|
||||||
# cf https://code.castopod.org/adaures/castopod/-/releases/v1.6.1
|
# cf https://code.castopod.org/adaures/castopod/-/releases/v1.6.1
|
||||||
ynh_mysql_connect_as --user=$db_user --password=$db_pwd --database=$db_name < "../conf/v1.6.1.sql"
|
ynh_mysql_connect_as --user=$db_user --password=$db_pwd --database=$db_name < "../conf/sql/v1.6.1.sql"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
#=================================================
|
#=================================================
|
||||||
|
|
Loading…
Add table
Reference in a new issue