Coder Social home page Coder Social logo

Comments (4)

oiseauroch avatar oiseauroch commented on September 26, 2024

Yeah, I saw the warning and then tried to create hook as explain in https://yunohost.org/en/packaging_apps_hooks. But the weird thing is that even if the hook is on the right place, it seems that its called only if regen_conf is called without argument (ex nginx) and the warning stay.

As I understand, I should better add the hook like in the postman app (and not as the doc say ?)

from garage_ynh.

mrflos avatar mrflos commented on September 26, 2024

Hello,
I just got this very same warning about nginx conf changed manually, from the diagnosis email.
I use this merged version 0.8.0~yhn4, and it's quite strange:

# yunohost tools regen-conf nginx --dry-run --with-diff
Warning: The configuration file '/etc/nginx/conf.d/garage.yeswiki.net.conf' has been manually modified and will not be updated
nginx: 
  applied: 
  pending: 
    /etc/nginx/conf.d/garage.yeswiki.net.conf: 
      diff: @@ -6,7 +6,7 @@
 server {
     listen 80;
     listen [::]:80;
-    server_name garage.yeswiki.net *.garage.yeswiki.net;
+    server_name garage.yeswiki.net;
 
     access_by_lua_file /usr/share/ssowat/access.lua;
 
@@ -35,7 +35,7 @@
 server {
     listen 443 ssl http2;
     listen [::]:443 ssl http2;
-    server_name garage.yeswiki.net *.garage.yeswiki.net;
+    server_name garage.yeswiki.net;
 
     include /etc/nginx/conf.d/security.conf.inc;
      status: modified

But after : # yunohost tools regen-conf nginx --force

# cat /etc/nginx/conf.d/garage.yeswiki.net.conf 
[..]
server_name garage.yeswiki.net *.garage.yeswiki.net;
[..]

It's like the dry-run doesn't wait for the hook to be applied and complains..

from garage_ynh.

Thatoo avatar Thatoo commented on September 26, 2024

Is it possible to close this issue after merging #5 ?

from garage_ynh.

tituspijean avatar tituspijean commented on September 26, 2024

The hook still triggers the CI "error", but the test passes, so OK. :)

However you forgot to tweak the change_url script to update the hook (it has a __DOMAIN__ variable).

from garage_ynh.

Related Issues (5)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.