diff --git a/scripts/install b/scripts/install index 98b5843..9772213 100644 --- a/scripts/install +++ b/scripts/install @@ -47,6 +47,7 @@ GENERATE_DB $app # Create a database and a dedicated user in the app name sudo mkdir "$final_path" ynh_app_setting_set $app final_path $final_path +# Get source SETUP_SOURCE # Set permissions spip directory @@ -67,6 +68,7 @@ then sudo sed -i "s@#--PRIVATE--@@g" /etc/nginx/conf.d/$domain.d/$app.conf fi +# Create the php-fpm pool config POOL_FPM sudo cp ../conf/connect.php $final_path/config/connect.php diff --git a/scripts/upgrade b/scripts/upgrade index 02733b2..540adb7 100644 --- a/scripts/upgrade +++ b/scripts/upgrade @@ -28,6 +28,7 @@ root_pwd=$(sudo cat /etc/yunohost/mysql) final_path=/var/www/$app +# Get source SETUP_SOURCE db_name=$app @@ -44,6 +45,9 @@ then sudo sed -i "s@#--PRIVATE--@@g" /etc/nginx/conf.d/$domain.d/$app.conf fi +# Create the php-fpm pool config +POOL_FPM + # Setup SSOwat ynh_app_setting_set "$app" is_public "$is_public" if [ "$is_public" = "Yes" ];