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:
parent
0b1d6c416b
commit
960cde44ca
1 changed files with 1 additions and 4 deletions
|
@ -163,11 +163,8 @@ then
|
||||||
for d in * ; do
|
for d in * ; do
|
||||||
ynh_script_progression --message="Migrating bucket $d"
|
ynh_script_progression --message="Migrating bucket $d"
|
||||||
mv "$d" "DATA_$d"
|
mv "$d" "DATA_$d"
|
||||||
mkdir "$d"
|
|
||||||
chmod 750 "$d"
|
|
||||||
chmod -R o-rwx "$d"
|
|
||||||
chown -R $app:www-data "$d"
|
|
||||||
pushd $mc_path
|
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"
|
ynh_exec_warn_less sudo -u $app ./mc mirror --preserve "$datadir/DATA_$d" minio/"$d"
|
||||||
popd
|
popd
|
||||||
ynh_secure_remove --file="DATA_$d"
|
ynh_secure_remove --file="DATA_$d"
|
||||||
|
|
Loading…
Add table
Reference in a new issue