Hi,
I want to use CLI/bash to be able to enable, disable or suspend a domain. I am also trying to write a bash script that shows all enabled/disabled/suspended domains.
There seems to be a problem with the domain status though, or maybe I am doing something wrong?
I use "sudo plesk bin site --info [site name]" command to get all domain info, and then I use grep to get the "Domain status".
If a site is enabled, the domain status is: OK
If a site is suspended, the domain status is: Domain was suspended by administrator.
BUT
If a site is disabled, the domain status is: Domain was suspended by administrator. <= This is the exact same status as for a suspended domain.
As you can see, a suspended site and a disabled site share the exact same status, while they are 2 different things.
So how should I check (in bash) if a site is disabled instead of suspended? Am I doing something wrong or is this a bug in Plesk maybe?
I want to use CLI/bash to be able to enable, disable or suspend a domain. I am also trying to write a bash script that shows all enabled/disabled/suspended domains.
There seems to be a problem with the domain status though, or maybe I am doing something wrong?
I use "sudo plesk bin site --info [site name]" command to get all domain info, and then I use grep to get the "Domain status".
If a site is enabled, the domain status is: OK
If a site is suspended, the domain status is: Domain was suspended by administrator.
BUT
If a site is disabled, the domain status is: Domain was suspended by administrator. <= This is the exact same status as for a suspended domain.
As you can see, a suspended site and a disabled site share the exact same status, while they are 2 different things.
So how should I check (in bash) if a site is disabled instead of suspended? Am I doing something wrong or is this a bug in Plesk maybe?