diff --git a/scripts/install b/scripts/install index 4fca190..a39a125 100755 --- a/scripts/install +++ b/scripts/install @@ -200,7 +200,7 @@ chown minio:www-data "$mc_path/policy.json" pushd "$mc_path" ynh_exec_warn_less sudo -u minio ./mc mb minio/outlinestorage --region "fr-ynh-1" ynh_exec_warn_less sudo -u minio ./mc admin policy add minio outline ./policy.json - ynh_exec_warn_less sudo -u minio ./mc admin policy set outline minio/outlinestorage + ynh_exec_warn_less sudo -u minio ./mc admin policy set minio/outlinestorage outline popd #================================================= diff --git a/scripts/restore b/scripts/restore index bf8afa0..4d1e0a3 100755 --- a/scripts/restore +++ b/scripts/restore @@ -129,7 +129,7 @@ chown minio:www-data "$mc_path/policy.json" pushd "$mc_path" ynh_exec_warn_less sudo -u minio ./mc mb minio/outlinestorage --region "fr-ynh-1" ynh_exec_warn_less sudo -u minio ./mc admin policy add minio outline ./policy.json - ynh_exec_warn_less sudo -u minio ./mc admin policy set outline minio/outlinestorage + ynh_exec_warn_less sudo -u minio ./mc admin policy set minio/outlinestorage outline popd ynh_secure_remove --file="$mc_path/outlinestorage" diff --git a/scripts/upgrade b/scripts/upgrade index 52215d0..da115ac 100644 --- a/scripts/upgrade +++ b/scripts/upgrade @@ -105,7 +105,7 @@ chown minio:www-data "$mc_path/policy.json" pushd "$mc_path" ynh_exec_warn_less sudo -u minio ./mc admin policy add minio outline ./policy.json - ynh_exec_warn_less sudo -u minio ./mc admin policy set outline minio/outlinestorage + ynh_exec_warn_less sudo -u minio ./mc admin policy set minio/outlinestorage outline popd #=================================================