Join the community today
Become a Member

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

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

Tags:
  1. RoldanLT

    RoldanLT Well-Known Member

    3,978
    965
    113
    May 25, 2014
    Phillipines
    Ratings:
    +1,329
    Local Time:
    8:39 AM
    1.11
    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

    30,947
    6,915
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +10,413
    Local Time:
    10:39 AM
    Nginx 1.13.x
    MariaDB 5.5
    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
    
     
    • Like Like x 1
  3. RoldanLT

    RoldanLT Well-Known Member

    3,978
    965
    113
    May 25, 2014
    Phillipines
    Ratings:
    +1,329
    Local Time:
    8:39 AM
    1.11
    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

    30,947
    6,915
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +10,413
    Local Time:
    10:39 AM
    Nginx 1.13.x
    MariaDB 5.5
    no just type it out, if you use bash script would need more changes
     
    • Like Like x 1
  5. RoldanLT

    RoldanLT Well-Known Member

    3,978
    965
    113
    May 25, 2014
    Phillipines
    Ratings:
    +1,329
    Local Time:
    8:39 AM
    1.11
    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

    30,947
    6,915
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +10,413
    Local Time:
    10:39 AM
    Nginx 1.13.x
    MariaDB 5.5
  7. RoldanLT

    RoldanLT Well-Known Member

    3,978
    965
    113
    May 25, 2014
    Phillipines
    Ratings:
    +1,329
    Local Time:
    8:39 AM
    1.11
    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

    30,947
    6,915
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +10,413
    Local Time:
    10:39 AM
    Nginx 1.13.x
    MariaDB 5.5
    nope it's for CentOS 6.5 + 7.0. The other branch is only for CentOS 6.5 :)
     
    • Like Like x 1
  9. RoldanLT

    RoldanLT Well-Known Member

    3,978
    965
    113
    May 25, 2014
    Phillipines
    Ratings:
    +1,329
    Local Time:
    8:39 AM
    1.11
    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