1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/castopod_ynh.git synced 2024-09-03 18:16:14 +02:00

Remove curl

This commit is contained in:
ericgaspar 2022-10-14 22:51:46 +02:00
parent 99891983a8
commit 011f9ebad6
6 changed files with 3 additions and 45 deletions

View file

@ -27,14 +27,6 @@ database.default.username="__DB_USER__"
database.default.password="__DB_PWD__"
database.default.DBPrefix="cp_"
#--------------------------------------------------------------------
# Email configuration
#--------------------------------------------------------------------
# email.fromEmail="__EMAIL__"
# email.SMTPHost="loclhost"
# email.SMTPUser=""
# email.SMTPPass=""
#--------------------------------------------------------------------
# Cache configuration (advanced)
#

View file

@ -39,10 +39,6 @@
"fr": "Castopod doit être installé dans un domaine ou sous-domaine dédié."
}
},
{
"name": "admin",
"type": "user"
},
{
"name": "is_public",
"type": "boolean",
@ -51,10 +47,6 @@
"fr": "Si cette case est cochée, Castopod sera accessible aux personnes nayant pas de compte. Vous pourrez changer ceci plus tard via la webadmin."
},
"default": true
},
{
"name": "password",
"type": "password"
}
]
}

View file

@ -26,7 +26,7 @@ app=$YNH_APP_INSTANCE_NAME
final_path=$(ynh_app_setting_get --app=$app --key=final_path)
domain=$(ynh_app_setting_get --app=$app --key=domain)
db_name=$(ynh_app_setting_get --app=$app --key=db_name)
phpversion=$YNH_PHP_VERSION
phpversion=$(ynh_app_setting_get --app=$app --key=phpversion)
#=================================================
# DECLARE DATA AND CONF FILES TO BACKUP

View file

@ -27,9 +27,6 @@ ynh_abort_if_errors
domain=$YNH_APP_ARG_DOMAIN
path_url="/"
is_public=$YNH_APP_ARG_IS_PUBLIC
admin=$YNH_APP_ARG_ADMIN
password="$YNH_APP_ARG_PASSWORD"
email=$(ynh_user_get_info --username=$admin --key=mail)
app=$YNH_APP_INSTANCE_NAME
@ -55,8 +52,6 @@ ynh_script_progression --message="Storing installation settings..." --weight=1
ynh_app_setting_set --app=$app --key=domain --value=$domain
ynh_app_setting_set --app=$app --key=path --value=$path_url
ynh_app_setting_set --app=$app --key=admin --value=$admin
ynh_app_setting_set --app=$app --key=password --value="$password"
ynh_app_setting_set --app=$app --key=fpm_footprint --value=$fpm_footprint
ynh_app_setting_set --app=$app --key=fpm_free_footprint --value=$fpm_free_footprint
ynh_app_setting_set --app=$app --key=fpm_usage --value=$fpm_usage
@ -141,27 +136,6 @@ ynh_add_config --template="../conf/cron" --destination="/etc/cron.d/$app"
chown root: "/etc/cron.d/$app"
chmod 644 "/etc/cron.d/$app"
#=================================================
# SETUP APPLICATION WITH CURL
#=================================================
# # Set the app as temporarily public for curl call
# ynh_script_progression --message="Configuring SSOwat..." --weight=1
# # Making the app public for curl
# ynh_permission_update --permission="main" --add="visitors"
# # Reload NGINX
# ynh_systemd_action --service_name=nginx --action=reload
# # Installation with curl
# ynh_script_progression --message="Finalizing installation..." --weight=1
# ynh_local_curl "/cp-install"
# ynh_local_curl "/cp-install/create-superadmin" "email=$email" "username=$admin" "password=$password"
# ynh_permission_update --permission="main" --remove="visitors"
#=================================================
# SETUP SSOWAT
#=================================================

View file

@ -33,7 +33,7 @@ path_url=$(ynh_app_setting_get --app=$app --key=path)
final_path=$(ynh_app_setting_get --app=$app --key=final_path)
db_name=$(ynh_app_setting_get --app=$app --key=db_name)
db_user=$db_name
phpversion=$YNH_PHP_VERSION
phpversion=$(ynh_app_setting_get --app=$app --key=phpversion)
fpm_footprint=$(ynh_app_setting_get --app=$app --key=fpm_footprint)
fpm_usage=$(ynh_app_setting_get --app=$app --key=fpm_usage)

View file

@ -22,7 +22,7 @@ final_path=$(ynh_app_setting_get --app=$app --key=final_path)
db_name=$(ynh_app_setting_get --app=$app --key=db_name)
db_pwd=$(ynh_app_setting_get --app=$app --key=mysqlpwd)
redis_db=$(ynh_app_setting_get --app=$app --key=redis_db)
phpversion=$YNH_PHP_VERSION
phpversion=$(ynh_app_setting_get --app=$app --key=phpversion)
fpm_footprint=$(ynh_app_setting_get --app=$app --key=fpm_footprint)
fpm_free_footprint=$(ynh_app_setting_get --app=$app --key=fpm_free_footprint)