Giter Site home page Giter Site logo

Comments (5)

lapineige avatar lapineige commented on May 24, 2024 1

I don't really know how other Yunohost package manage that (ping @YunoHost-Apps/apps-group) appart from making a backup and letting you manually transfer the changes if you want to (I do that for Pixelfed, it's painful, but at least my changes are not lost).

from codimd_ynh.

fflorent avatar fflorent commented on May 24, 2024 1

As a workaround to this issue, you may create a empty file with env variables (maybe with just a comment to explain how to fill it) and source it when running codimd. So the user can only tweak the file with env variable and the app maintainer may tweak the config.json file at his/her convenience.

If I quote this page:

 Environment variables take precedence over configurations from the config files. They generally start with CMD_ for our own options, but we also list node-specific options you can configure this way.

from codimd_ynh.

ericgaspar avatar ericgaspar commented on May 24, 2024 1

@fflorent This upgraded version of CodiMD allows installation in a sub-folder, therefore the config.json file has a new $path argument hence the choice to overwrite the previous config.json file. Not ideal I guess...

from codimd_ynh.

yalh76 avatar yalh76 commented on May 24, 2024 1

Describe the bug

When updating the application, /var/www/codimd/config.json is overwritten, despite the README file which invites to tweak it.

Yes it's a normal behavior, it's why during upgrade, there is :

ynh_backup_if_checksum_is_different --file="$final_path/config.json"

ynh_backup_if_checksum_is_different keep a copy of the the config file to let you tweak again :)

from codimd_ynh.

fflorent avatar fflorent commented on May 24, 2024

Useful link for sourcing an environment file in a systemd service:

https://fedoraproject.org/wiki/Packaging:Systemd#EnvironmentFiles_and_support_for_.2Fetc.2Fsysconfig_files

from codimd_ynh.

Related Issues (20)

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.