How to synchronize all the subscriptions with service plans?

Created:

2016-11-16 13:09:14 UTC

Modified:

2017-03-09 22:12:46 UTC

0

Was this article helpful?


Have more questions?

Submit a request

How to synchronize all the subscriptions with service plans?

Symptoms

How to synchronize all subscriptions with service plans.

Resolution

Generally you can synchronize one subscription in the following way:

  1. Go to Home=> Subscriptions => domain.tld
  2. Click Unlock & Sync button

If you want to synchronize all the subscriptions you can do it with command line utility:

1) Unlock all subscriptions first:

    for domain in \\`MYSQL_PWD=`cat /etc/psa/.psa.shadow` mysql -u admin psa -sNe"select name from domains where webspace_id=0"\\`; do /usr/local/psa/bin/subscription --unlock-subscription $domain; done*

2) Then synchronize subscriptions with plan:

    for domain in \\`MYSQL_PWD=`cat /etc/psa/.psa.shadow` mysql -u admin psa -sNe"select name from domains where webspace_id=0"\\`; do /usr/local/psa/bin/subscription --sync-subscription $domain; done*
Have more questions? Submit a request
Please sign in to leave a comment.