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-02-01 23:36:56 +07:00
parent ca1a3424ec
commit c526e09811

View file

@ -137,8 +137,8 @@ if ynh_compare_current_package_version --comparison lt --version 2022.12.12~ynh1
then
ynh_script_progression --message="Moving old Filesystem to secure MinIO start"
tmp="/tmp/minio"
mv "$datadir/" "$tmp"
mkdir "$datadir"
ynh_exec_warn_less cp -Ra "$datadir/*" "$tmp"
ynh_exec_warn_less mkdir "$datadir"
chmod 750 "$datadir"
chmod -R o-rwx "$datadir"
chown -R $app:www-data "$datadir"