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
afbffde4bd
commit
6e268754fc
1 changed files with 2 additions and 3 deletions
|
@ -172,17 +172,16 @@ ynh_script_progression --message="Ensuring downward compatibility..."
|
||||||
if ynh_compare_current_package_version --comparison lt --version 2022.12.12~ynh1
|
if ynh_compare_current_package_version --comparison lt --version 2022.12.12~ynh1
|
||||||
then
|
then
|
||||||
ynh_script_progression --message="Migration from Filesystem to Single-Node Single-Drive mode"
|
ynh_script_progression --message="Migration from Filesystem to Single-Node Single-Drive mode"
|
||||||
pushd $tmp
|
pushd "$tmp"
|
||||||
for d in * ; do
|
for d in * ; do
|
||||||
if [ "$d" == "*" ]
|
if [ "$d" == "*" ]
|
||||||
then
|
then
|
||||||
ynh_script_progression --message="No buckets to migrate"
|
ynh_script_progression --message="No buckets to migrate"
|
||||||
else
|
else
|
||||||
ynh_script_progression --message="Migrating bucket $d"
|
ynh_script_progression --message="Migrating bucket $d"
|
||||||
mv "$d" "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 mb minio/"$d"
|
||||||
ynh_exec_warn_less sudo -u $app ./mc mirror --preserve "$tmp/DATA_$d" minio/"$d"
|
ynh_exec_warn_less sudo -u $app ./mc mirror --preserve "$tmp/$d" "minio/$d"
|
||||||
# This is a hack, but it will make outline_ynh users' lifes much easier !
|
# This is a hack, but it will make outline_ynh users' lifes much easier !
|
||||||
if [ "$d" == "outlinestorage" ]
|
if [ "$d" == "outlinestorage" ]
|
||||||
then
|
then
|
||||||
|
|
Loading…
Add table
Reference in a new issue