mirror of
https://github.com/YunoHost-Apps/castopod_ynh.git
synced 2024-09-03 18:16:14 +02:00
Fix usage of mv
This commit is contained in:
parent
c0e607499b
commit
ca88784a45
1 changed files with 4 additions and 1 deletions
|
@ -44,10 +44,13 @@ fi
|
|||
|
||||
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
|
||||
mkdir -p $data_dir/media
|
||||
cp -rf $install_dir/public/media/* $data_dir/media/*
|
||||
chmod -R 750 $data_dir
|
||||
chgrp -R www-data $data_dir
|
||||
|
||||
ynh_secure_remove --file="$install_dir/public/media"
|
||||
|
||||
ynh_script_progression --message="Fixing migrations..." --weight=1
|
||||
ynh_mysql_execute_as_root --database=$db_name --sql="UPDATE cp_migrations SET class='Media\\\\Database\\\\Migrations\\\\AddMedia', namespace='Media' where class='App\\\\Database\\\\Migrations\\\\AddMedia'"
|
||||
fi
|
||||
|
|
Loading…
Add table
Reference in a new issue