MagicMirror Forum
    • Recent
    • Tags
    • Unsolved
    • Solved
    • MagicMirror² Repository
    • Documentation
    • 3rd-Party-Modules
    • Donate
    • Discord
    • Register
    • Login
    A New Chapter for MagicMirror: The Community Takes the Lead
    Read the statement by Michael Teeuw here.

    I broke something

    Scheduled Pinned Locked Moved Troubleshooting
    10 Posts 3 Posters 1.4k Views 3 Watching
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • K Offline
      killerjoe34
      last edited by

      Ok, I read the man page but still don’t get it, even in french :D :(
      You’re saying that if the root file is modified, it also modifies the linked one(s) or does it make another copy ?
      Cause it would be perfect in that case, keeping track of every modification to be able to step back.

      Thanks for your explanations :)

      S 1 Reply Last reply Reply Quote 0
      • S Offline
        sdetweil @killerjoe34
        last edited by

        @killerjoe34 no, the link makes it look like all the secondary files ARE the root file. so actually changing ANY changes them all, there is ONLY one actual file. but erasing the linked file does NOT erase the root file.

        try this

        mkdir ~/foo
        mv ~/MagicMirror/config/config.js foo
        cd ~/MagicMirror/config
        ln -s ~/foo/config.js config.js
        

        now you have your file in ~/foo
        but it LOOKS like it is also in ~/MagicMirror/config

        edit one, change the date/time format
        restart MM
        voila
        edit the other one and change it back
        restart MM

        Sam

        How to add modules

        learning how to use browser developers window for css changes

        1 Reply Last reply Reply Quote 0
        • K Offline
          killerjoe34
          last edited by

          @sdetweil said in I broke something:

          try this

          Wow great :)
          Thanks a lot, I’ll use that !

          S 1 Reply Last reply Reply Quote 0
          • S Offline
            sdetweil @killerjoe34
            last edited by

            @killerjoe34 you can also link folders

            if you do (in the config folder where I just set a link)

            ls -laF

            will show u the file is linked, and where to

            Sam

            How to add modules

            learning how to use browser developers window for css changes

            K 1 Reply Last reply Reply Quote 1
            • K Offline
              killerjoe34 @sdetweil
              last edited by

              @sdetweil said in I broke something:

              @killerjoe34 you can also link folders

              if you do (in the config folder where I just set a link)

              ls -laF

              will show u the file is linked, and where to

              Ok, I’ll have a look at that, thx again !

              1 Reply Last reply Reply Quote 0
              • 1 / 1
              • First post
                Last post
              Enjoying MagicMirror? Please consider a donation!
              MagicMirror created by Michael Teeuw.
              Forum managed by Sam, technical setup by Karsten.
              This forum is using NodeBB as its core | Contributors
              Contact | Privacy Policy