mirror of
https://github.com/YunoHost-Apps/minio_ynh.git
synced 2024-09-03 19:46:18 +02:00
Update install
This commit is contained in:
parent
66d0dcd31f
commit
366a34ed3d
1 changed files with 11 additions and 11 deletions
|
@ -96,14 +96,14 @@ chmod +x "$final_path/minio"
|
||||||
#=================================================
|
#=================================================
|
||||||
# DOWNLOAD, CHECK AND UNPACK MINIO CLIENT
|
# DOWNLOAD, CHECK AND UNPACK MINIO CLIENT
|
||||||
#=================================================
|
#=================================================
|
||||||
ynh_script_progression --message="Setting up MinIO client..." --time --weight=1
|
# ynh_script_progression --message="Setting up MinIO client..." --time --weight=1
|
||||||
|
|
||||||
ynh_setup_source --dest_dir="$mc_path" --source_id="mc"
|
# ynh_setup_source --dest_dir="$mc_path" --source_id="mc"
|
||||||
|
|
||||||
chmod -R 750 "$mc_path"
|
# chmod -R 750 "$mc_path"
|
||||||
chmod -R o-rwx "$mc_path"
|
# chmod -R o-rwx "$mc_path"
|
||||||
chown -R $app:www-data "$mc_path"
|
# chown -R $app:www-data "$mc_path"
|
||||||
chmod +x $mc_path/mc
|
# chmod +x $mc_path/mc
|
||||||
|
|
||||||
#=================================================
|
#=================================================
|
||||||
# NGINX CONFIGURATION
|
# NGINX CONFIGURATION
|
||||||
|
@ -118,7 +118,7 @@ ynh_add_nginx_config
|
||||||
#=================================================
|
#=================================================
|
||||||
ynh_script_progression --message="Creating a data directory..." --weight=1
|
ynh_script_progression --message="Creating a data directory..." --weight=1
|
||||||
|
|
||||||
datadir=/home/yunohost.app/$app
|
datadir="/home/yunohost.app/$app"
|
||||||
ynh_app_setting_set --app=$app --key=datadir --value=$datadir
|
ynh_app_setting_set --app=$app --key=datadir --value=$datadir
|
||||||
|
|
||||||
mkdir -p $datadir
|
mkdir -p $datadir
|
||||||
|
@ -193,11 +193,11 @@ sleep 5
|
||||||
#=================================================
|
#=================================================
|
||||||
# SETUP MINIO CLIENT
|
# SETUP MINIO CLIENT
|
||||||
#=================================================
|
#=================================================
|
||||||
ynh_script_progression --message="Configuring MinIO client..." --time --weight=1
|
# ynh_script_progression --message="Configuring MinIO client..." --time --weight=1
|
||||||
|
|
||||||
pushd $mc_path
|
# pushd $mc_path
|
||||||
ynh_exec_warn_less sudo -u $app ./mc alias set minio "https://$domain" "$app" "$minio_key"
|
# ynh_exec_warn_less sudo -u $app ./mc alias set minio "https://$domain" "$app" "$minio_key"
|
||||||
popd
|
# popd
|
||||||
|
|
||||||
#=================================================
|
#=================================================
|
||||||
# END OF SCRIPT
|
# END OF SCRIPT
|
||||||
|
|
Loading…
Add table
Reference in a new issue