backdrop-contrib / brush

Brush is a command line shell and Unix scripting interface for Backdrop CMS.
GNU General Public License v3.0
2 stars 0 forks source link

No state key found for maintenance_mode #25

Closed alanmels closed 3 years ago

alanmels commented 3 years ago

When setting Backdrop online and then checking the status of maintenance_mode works correctly:

docker@cli:/var/www/docroot/modules$ brush sset maintenance_mode 1
State key "maintenance_mode" has been succesfully updated.
docker@cli:/var/www/docroot/modules$ brush sget maintenance_mode
+------------------+-------+
| State key        | Value |
+------------------+-------+
| maintenance_mode | 1     |
+------------------+-------+

However, while setting the website offline works as expected, checking the status of maintenance_mode gives error, apparently because of 0 as a state key:

docker@cli:/var/www/docroot/modules$ brush sset maintenance_mode 0
State key "maintenance_mode" has been succesfully updated.
docker@cli:/var/www/docroot/modules$ brush sget maintenance_mode
No state key found for maintenance_mode                                                      [error]