diff --git a/scripts/install b/scripts/install index a39a125..7a9df8d 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 minio/outlinestorage outline + ynh_exec_warn_less sudo -u minio ./mc admin policy set minio outline popd #================================================= diff --git a/scripts/restore b/scripts/restore index 4d1e0a3..9350a0d 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 minio/outlinestorage outline + ynh_exec_warn_less sudo -u minio ./mc admin policy set minio outline popd ynh_secure_remove --file="$mc_path/outlinestorage" diff --git a/scripts/upgrade b/scripts/upgrade index da115ac..c1a4101 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 minio/outlinestorage outline + ynh_exec_warn_less sudo -u minio ./mc admin policy set minio outline popd #=================================================