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:
parent
6397b92c22
commit
8a0d8b83c7
3 changed files with 3 additions and 6 deletions
|
@ -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
|
||||
|
||||
#=================================================
|
||||
|
|
|
@ -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"
|
||||
|
|
|
@ -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
|
||||
|
||||
#=================================================
|
||||
|
|
Loading…
Reference in a new issue