Making SVN Update more easy

  • Hi,

    i would like to have a little script that will automate the update process a little more.

    svn update
    cd bin
    if needed calling schemaupdate.php and do it.

    Could someone tell me howto pipe this correctly?
    Script should abort if there is nothing new in svn, also how to know if a db schema update is needed?
    Is it possible to add a /q option to for a silent update (forced)?

  • Moderator

    BTSync is always on the latest, automatically distributed if you want that for testing.

  • Senior Developer

    I don’t know why you need to make installing fog easier. While I understand you’re scripting it to keep up with the SVN changes, it’s not a requirement nor is it really suggested. Sometimes I make mistakes whether to the GUI, or inits, or installer itself. If there’s an issue, it could potentially leave your system mis-configured from the FOG Standpoint.

  • Hi,

    this works:

    svn update /opt/trunk; cd /opt/trunk/bin; echo -e 'y' | ./

    but finally it needs an enter at the end and i don’t know why but…

    What yes does is it repeatedly prints y (or the argument if given) followed by a newline to stdout.

    Regards X23

  • Hi,

    i would like to automate these answers as well as the schema update if needed.

    i’ve shorten that a little:

    Regards X23

  • This post is deleted!

  • Developer

    ok, if you have the svn downloaded to a directory named trunk in your home folder, this should work, maybe…
    this is off the top of my head, and untested

    cd ~/svn/trunk/
    svn update
    cd bin

    sudo ./

    you’ll still need to answer the questions though

  • Hi,

    i don’t want to cron the update script or something, i simply want to start a script that will do a svn update and install with a single command.

    No feature request for automated svn updates! ;)
    I just don’t know how to thread all this commands into a script.

    Regards X23

  • Developer

    i don’t think that updates to the developers pre-release version of fog is something you’ll honestly want to automate. things can get broken at a moment’s notice in the trunk because a lot of it is yet to be tested.

Log in to reply





Looks like your connection to FOG Project was lost, please wait while we try to reconnect.