mirror of
https://github.com/YunoHost-Apps/outline_ynh.git
synced 2024-09-03 19:56:12 +02:00
fix set policy
This commit is contained in:
parent
eb6e1ac6c5
commit
6f14d06d7b
3 changed files with 3 additions and 3 deletions
|
@ -200,7 +200,7 @@ chown minio:www-data "$mc_path/policy.json"
|
||||||
pushd "$mc_path"
|
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 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 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
|
popd
|
||||||
|
|
||||||
#=================================================
|
#=================================================
|
||||||
|
|
|
@ -129,7 +129,7 @@ chown minio:www-data "$mc_path/policy.json"
|
||||||
pushd "$mc_path"
|
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 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 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
|
popd
|
||||||
|
|
||||||
ynh_secure_remove --file="$mc_path/outlinestorage"
|
ynh_secure_remove --file="$mc_path/outlinestorage"
|
||||||
|
|
|
@ -105,7 +105,7 @@ chown minio:www-data "$mc_path/policy.json"
|
||||||
|
|
||||||
pushd "$mc_path"
|
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 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
|
popd
|
||||||
|
|
||||||
#=================================================
|
#=================================================
|
||||||
|
|
Loading…
Reference in a new issue