I have a bash script, which im using on a handful machines. On all machines, its the same script. Sometimes i need to adjust/update the script. With that, i need to copy the script to all this machines again.

Is there some way to update the script only on one central location and if this is done, the script checks itself, if there is a updated/changed variant on this central location and if so, copy the new version and restart itself after copy?

  • lordnikon@lemmy.world
    link
    fedilink
    English
    arrow-up
    1
    ·
    2 days ago

    The way to do this would be use got have a repo on one machine and do a git pull on the other machines on a cron