1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/minio_ynh.git synced 2024-09-03 19:46:18 +02:00

Update upgrade

This commit is contained in:
Limezy 2023-01-27 01:46:52 +07:00
parent 0b1d6c416b
commit 960cde44ca

View file

@ -163,11 +163,8 @@ then
for d in * ; do
ynh_script_progression --message="Migrating bucket $d"
mv "$d" "DATA_$d"
mkdir "$d"
chmod 750 "$d"
chmod -R o-rwx "$d"
chown -R $app:www-data "$d"
pushd $mc_path
ynh_exec_warn_less sudo -u $app ./mc mb minio/"$d"
ynh_exec_warn_less sudo -u $app ./mc mirror --preserve "$datadir/DATA_$d" minio/"$d"
popd
ynh_secure_remove --file="DATA_$d"