1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/outline_ynh.git synced 2024-09-03 19:56:12 +02:00

Should be good

This commit is contained in:
Limezy 2023-02-17 01:09:45 +07:00
parent 6397b92c22
commit 8a0d8b83c7
3 changed files with 3 additions and 6 deletions

View file

@ -199,8 +199,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 outline user="$minio_admin"
ynh_exec_warn_less sudo -u minio ./mc anonymous set-json ./policy.json minio/outlinestorage
popd
#=================================================

View file

@ -128,8 +128,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 outline user="$minio_admin"
ynh_exec_warn_less sudo -u minio ./mc anonymous set-json ./policy.json minio/outlinestorage
popd
ynh_secure_remove --file="$mc_path/outlinestorage"

View file

@ -104,8 +104,7 @@ ynh_add_config --template="../conf/policy.json" --destination="$mc_path/policy.j
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 outline user="$minio_admin"
ynh_exec_warn_less sudo -u minio ./mc anonymous set-json ./policy.json minio/outlinestorage
popd
#=================================================