1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/grav_ynh.git synced 2024-09-03 19:16:01 +02:00

Remove redundant arguments

This commit is contained in:
ericgaspar 2021-01-21 22:40:50 +01:00
parent 2083e182f0
commit 8a2337b9e7
No known key found for this signature in database
GPG key ID: 574F281483054D44
4 changed files with 7 additions and 10 deletions

View file

@ -38,9 +38,6 @@ ynh_script_progression --message="Validating installation parameters..." --weigh
final_path=/var/www/$app
test ! -e "$final_path" || ynh_die "This path already contains a folder"
# Normalize the url path syntax
path_url=$(ynh_normalize_url_path "$path_url")
# Check web path availability
ynh_webpath_available --domain=$domain --path_url=$path_url
# Register (book) web path
@ -73,7 +70,7 @@ ynh_setup_source --dest_dir=$final_path
ynh_script_progression --message="Configuring NGINX web server..." --weight=1
# Create a dedicated nginx config
ynh_add_nginx_config YNH_PHP_VERSION
ynh_add_nginx_config
#=================================================
# CREATE DEDICATED USER
@ -89,7 +86,7 @@ ynh_system_user_create --username=$app --home_dir=$final_path
ynh_script_progression --message="Configuring PHP-FPM..." --weight=3
# Create a dedicated php-fpm config
ynh_add_fpm_config --usage=medium --footprint=medium --phpversion=$YNH_PHP_VERSION --package="$extra_php_dependencies"
ynh_add_fpm_config --usage=medium --footprint=medium --package="$extra_php_dependencies"
#=================================================
# GENERIC FINALIZATION

View file

@ -87,7 +87,7 @@ find $final_path -type d -exec chmod +s {} \;
ynh_restore_file --origin_path="/etc/php/$YNH_PHP_VERSION/fpm/pool.d/$app.conf"
# Recreate a dedicated php-fpm config
ynh_add_fpm_config --usage=$fpm_usage --footprint=$fpm_footprint --phpversion=$YNH_PHP_VERSION --package="$extra_php_dependencies"
ynh_add_fpm_config --usage=$fpm_usage --footprint=$fpm_footprint --package="$extra_php_dependencies"
#=================================================
# GENERIC FINALIZATION

View file

@ -121,7 +121,7 @@ fi
ynh_script_progression --message="Upgrading NGINX web server configuration..." --weight=2
# Create a dedicated nginx config
ynh_add_nginx_config YNH_PHP_VERSION
ynh_add_nginx_config
#=================================================
# CREATE DEDICATED USER
@ -137,7 +137,7 @@ ynh_system_user_create --username=$app --home_dir=$final_path
ynh_script_progression --message="Upgrading PHP-FPM configuration..." --weight=1
# Create a dedicated php-fpm config
ynh_add_fpm_config --usage=$fpm_usage --footprint=$fpm_footprint --phpversion=$YNH_PHP_VERSION --package="$extra_php_dependencies"
ynh_add_fpm_config --usage=$fpm_usage --footprint=$fpm_footprint --package="$extra_php_dependencies"
# Delete existing ini configuration file (backward compatibility)
if [ -f /etc/php/$YNH_PHP_VERSION/fpm/conf.d/20-$app.ini ]; then
@ -186,7 +186,7 @@ exec_as $app cp "$final_path/user/plugins/login-ldap/login-ldap.yaml" "$final_pa
#=================================================
# SETUP PERMISSIONS
#=================================================
ynh_script_progression --message="Configuring permissions..." --time --weight=1
ynh_script_progression --message="Configuring permissions..." --weight=1
# Giving admin permission to the specified used
if ! ynh_permission_exists --permission "admin"