mirror of
https://github.com/YunoHost-Apps/outline_ynh.git
synced 2024-09-03 19:56:12 +02:00
Fix MinIO policy file ownership
This commit is contained in:
parent
24b861c03a
commit
eb6e1ac6c5
3 changed files with 3 additions and 0 deletions
|
@ -195,6 +195,7 @@ chown -R $app:www-data "$final_path"
|
||||||
ynh_script_progression --message="Setting up MinIO bucket for Outline..." --weight=1
|
ynh_script_progression --message="Setting up MinIO bucket for Outline..." --weight=1
|
||||||
|
|
||||||
ynh_add_config --template="../conf/policy.json" --destination="$mc_path/policy.json"
|
ynh_add_config --template="../conf/policy.json" --destination="$mc_path/policy.json"
|
||||||
|
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"
|
||||||
|
|
|
@ -124,6 +124,7 @@ mv "$final_path/outlinestorage" "$mc_path/outlinestorage"
|
||||||
chown -R minio:www-data "$mc_path/outlinestorage"
|
chown -R minio:www-data "$mc_path/outlinestorage"
|
||||||
|
|
||||||
ynh_add_config --template="../conf/policy.json" --destination="$mc_path/policy.json"
|
ynh_add_config --template="../conf/policy.json" --destination="$mc_path/policy.json"
|
||||||
|
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"
|
||||||
|
|
|
@ -101,6 +101,7 @@ chown -R $app:www-data "$final_path"
|
||||||
ynh_script_progression --message="Updating outlinestorage MinIO bucket access policy..." --weight=1
|
ynh_script_progression --message="Updating outlinestorage MinIO bucket access policy..." --weight=1
|
||||||
|
|
||||||
ynh_add_config --template="../conf/policy.json" --destination="$mc_path/policy.json"
|
ynh_add_config --template="../conf/policy.json" --destination="$mc_path/policy.json"
|
||||||
|
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
|
||||||
|
|
Loading…
Add table
Reference in a new issue