Want to subscribe to topics you're interested in?
Become a Member

Is there any way that I can auto sync my "cmdir" from github repo?

Discussion in 'Centmin Mod Insights' started by rdan, Aug 31, 2014.

Tags:
  1. rdan

    rdan Well-Known Member

    5,439
    1,398
    113
    May 25, 2014
    Ratings:
    +2,187
    Local Time:
    9:56 AM
    Mainline
    10.2
    Now, I want to sync my /usr/local/src/centmin-v1.2.3mod/ folder with the .08 Beta Branch from github.
    How @eva2000 ?

    Thanks! :)

     
  2. eva2000

    eva2000 Administrator Staff Member

    53,488
    12,130
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +18,672
    Local Time:
    11:56 AM
    Nginx 1.27.x
    MariaDB 10.x/11.4+
    Either use a file comparison tool or you could setup your own local git repository or use github.com to setup your own.

    Or just overwrite the folder with .08 beta branch's extracted folder and reapply any customisations you have (suggested method)

    for 123.08centos7beta01 github branch
    Code:
    branchname=123.08centos7beta01
    wget -O /usr/local/src/${branchname}.zip https://github.com/centminmod/centminmod/archive/${branchname}.zip
    cd /usr/local/src
    unzip ${branchname}.zip
    cd centminmod-${branchname}
    chmod +x centmin.sh
    cd ../
    mv centmin-v1.2.3mod centmin-v1.2.3mod_old07
    mv centminmod-${branchname} centmin-v1.2.3mod
    
     
  3. rdan

    rdan Well-Known Member

    5,439
    1,398
    113
    May 25, 2014
    Ratings:
    +2,187
    Local Time:
    9:56 AM
    Mainline
    10.2
    So basically I create this as bash script?
    With .sh extension and I will create a cron for this :)
    To automatically update for me (lazy mode) :D
     
  4. eva2000

    eva2000 Administrator Staff Member

    53,488
    12,130
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +18,672
    Local Time:
    11:56 AM
    Nginx 1.27.x
    MariaDB 10.x/11.4+
    no just type it out, if you use bash script would need more changes
     
  5. rdan

    rdan Well-Known Member

    5,439
    1,398
    113
    May 25, 2014
    Ratings:
    +2,187
    Local Time:
    9:56 AM
    Mainline
    10.2
    So I want to use the .08 beta, changes would be:
    Code:
    branchname=123.08beta01
    wget -O /usr/local/src/${branchname}.zip https://github.com/centminmod/centminmod/archive/${branchname}.zip
    cd /usr/local/src
    unzip ${branchname}.zip
    cd centminmod-${branchname}
    chmod +x centmin.sh
    cd ../
    mv centmin-v1.2.3mod centmin-v1.2.3mod_old07
    mv centminmod-${branchname} centmin-v1.2.3mod
    
    Right? Thanks a lot!
     
  6. eva2000

    eva2000 Administrator Staff Member

    53,488
    12,130
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +18,672
    Local Time:
    11:56 AM
    Nginx 1.27.x
    MariaDB 10.x/11.4+
  7. rdan

    rdan Well-Known Member

    5,439
    1,398
    113
    May 25, 2014
    Ratings:
    +2,187
    Local Time:
    9:56 AM
    Mainline
    10.2
    Wait, I thought 123.08centos7beta01 branch is only for CentOS 7?
    Is it fully working also on CentOS 6.5?
    BTW I'm using it for my Live Forum.
     
  8. eva2000

    eva2000 Administrator Staff Member

    53,488
    12,130
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +18,672
    Local Time:
    11:56 AM
    Nginx 1.27.x
    MariaDB 10.x/11.4+
    nope it's for CentOS 6.5 + 7.0. The other branch is only for CentOS 6.5 :)
     
  9. rdan

    rdan Well-Known Member

    5,439
    1,398
    113
    May 25, 2014
    Ratings:
    +2,187
    Local Time:
    9:56 AM
    Mainline
    10.2
    Thanks, modified the code again :)
    Code:
    branchname=123.08centos7beta01
    wget -O /usr/local/src/${branchname}.zip https://github.com/centminmod/centminmod/archive/${branchname}.zip
    cd /usr/local/src
    unzip ${branchname}.zip
    cd centminmod-${branchname}
    chmod +x centmin.sh
    cd ../
    mv centmin-v1.2.3mod centmin-v1.2.3mod_old07
    mv centminmod-${branchname} centmin-v1.2.3mod