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
    ./installfog.sh
    Y
    [ENTER]
    if needed calling schemaupdate.php and do it.
    N
    

    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 installfog.sh 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' | ./installfog.sh
    

    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:
    http://askubuntu.com/questions/338857/automatically-enter-input-in-command-line

    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

    installshortcut.sh

    cd ~/svn/trunk/
    svn update
    cd bin
    ./installfog.sh
    

    sudo ./installshortcut.sh

    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
 

474
Online

38916
Users

10688
Topics

101382
Posts

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