Welcome to Centmin Mod Community
Become a Member

Beta Branch update tools/sitestatus.sh offline/online alias cmds

Discussion in 'Centmin Mod Github Commits' started by eva2000, Apr 26, 2017.

  1. eva2000

    eva2000 Administrator Staff Member

    30,161
    6,785
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +10,136
    Local Time:
    9:42 AM
    Nginx 1.13.x
    MariaDB 5.5
    • Winner Winner x 1
  2. Jimmy

    Jimmy Premium Member Premium Member

    1,114
    247
    63
    Oct 24, 2015
    East Coast USA
    Ratings:
    +596
    Local Time:
    7:42 PM
    1.13.x
    MariaDB 10.1.x
    Saw the sitestatus file update when I ran the Centmin Mod Updater. But when I tried sitestatus offline it gave me an error that on/off/setup were the only options.
     
  3. eva2000

    eva2000 Administrator Staff Member

    30,161
    6,785
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +10,136
    Local Time:
    9:42 AM
    Nginx 1.13.x
    MariaDB 5.5
    change is only for new installs right now IIRC but try re-running centmin.sh once again after centmin.sh menu option 23 submenu option 2 update
     
  4. Jimmy

    Jimmy Premium Member Premium Member

    1,114
    247
    63
    Oct 24, 2015
    East Coast USA
    Ratings:
    +596
    Local Time:
    7:42 PM
    1.13.x
    MariaDB 10.1.x
    Still only works with on/off. Not a big deal.
     
  5. ethanpil

    ethanpil Active Member

    168
    47
    28
    Nov 8, 2015
    Ratings:
    +87
    Local Time:
    9:42 AM
    How can we customize thw HTML content? Can we edit content for online vs on?
     
  6. eva2000

    eva2000 Administrator Staff Member

    30,161
    6,785
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +10,136
    Local Time:
    9:42 AM
    Nginx 1.13.x
    MariaDB 5.5
    see https://community.centminmod.com/threads/sitestatus-maintenance-mode.5599/ it's just matter of editing your web root copy of maintenance.html page - located in each nginx vhost public web root at /home/nginx/domains/domain.com/public/maintenance.html

    k will look into that
     
  7. ethanpil

    ethanpil Active Member

    168
    47
    28
    Nov 8, 2015
    Ratings:
    +87
    Local Time:
    9:42 AM
    Would you be interesting in adding a second command for enabled / disabled?

    For example if I am hosting a site for someone and they don't pay the bill, we can set it disabled with a similar command and a /home/nginx/domains/domain.com/disabled.html
     
  8. Jimmy

    Jimmy Premium Member Premium Member

    1,114
    247
    63
    Oct 24, 2015
    East Coast USA
    Ratings:
    +596
    Local Time:
    7:42 PM
    1.13.x
    MariaDB 10.1.x
    I think @eva2000 going rate for custom work is $350 an hour. But I could be wrong, it might be more.
     
  9. eva2000

    eva2000 Administrator Staff Member

    30,161
    6,785
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +10,136
    Local Time:
    9:42 AM
    Nginx 1.13.x
    MariaDB 5.5
    hehe

    @joshuaharradence has suspension feature request at https://community.centminmod.com/threads/suspend-a-website.11438/
     
  10. ethanpil

    ethanpil Active Member

    168
    47
    28
    Nov 8, 2015
    Ratings:
    +87
    Local Time:
    9:42 AM
    I dont think its an reasonable request for a web site hosting platform. I'm sure hundreds or thousands of servers using this software are used for client hosting. I can easily write it myself but I would prefer it getting included in the platform so I can upgrade worry free. I don't see @eva2000 accepting too many PRs so I don't want to waste my time.
     
  11. Jimmy

    Jimmy Premium Member Premium Member

    1,114
    247
    63
    Oct 24, 2015
    East Coast USA
    Ratings:
    +596
    Local Time:
    7:42 PM
    1.13.x
    MariaDB 10.1.x
    Write it up post it to github - contribute to the code. If it works, @eva2000 will add it and probably update it after that.
     
    • Agree Agree x 1
  12. eva2000

    eva2000 Administrator Staff Member

    30,161
    6,785
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +10,136
    Local Time:
    9:42 AM
    Nginx 1.13.x
    MariaDB 5.5
    Well Centmin Mod isn't for shared hosting so client suspensions aren't a situation that it would be used for, but i can see it being useful to suspend a site of your own.

    Pull requests have happened if they're easy to merge/test and in right branch i.e. 123.09beta01 and NOT master i.e. Pull Requests · centminmod/centminmod · GitHub