• Our team is looking to connect with folks who use email services provided by Plesk, or a premium service. If you'd like to be part of the discovery process and share your experiences, we invite you to complete this short screening survey. If your responses match the persona we are looking for, you'll receive a link to schedule a call at your convenience. We look forward to hearing from you!
  • The BIND DNS server has already been deprecated and removed from Plesk for Windows.
    If a Plesk for Windows server is still using BIND, the upgrade to Plesk Obsidian 18.0.70 will be unavailable until the administrator switches the DNS server to Microsoft DNS. We strongly recommend transitioning to Microsoft DNS within the next 6 weeks, before the Plesk 18.0.70 release.
  • The Horde component is removed from Plesk Installer. We recommend switching to another webmail software supported in Plesk.

install app vault package from CLI and assign to all clients

Amin Taheri

Golden Pleskian
Plesk Certified Professional
How do I install an app vault package from the command line?

Lets say I download WordPress 2.6.1-6
http://www.parallels.com/ptnload?ti.../WordPress/2.6.1-6.aps?packager=parallels.com

I then install it to the server
/usr/local/psa/bin/siteapp -i -file /local/path/to/file/WordPress-2.6.1-6.app.zip

But this installs to the server, now I have to install it to each users app vault to allow them to see it.

/usr/local/psa/bin/siteapp-item --add-to-pool <client>-sapp-name WordPress -sapp-version 2.6.1-6

Is there an easier way to do this ?

Do I really need to install it one by one (even if by script) in each client or can I just do it with one command to install it to everyone?

I am also unclear as to the -license-type value to send in.

I tried to use /usr/local/psa/bin/siteapp-license --list
and it didnt return any.

<licenses></licenses>


So does that mean I dont have licenses installed and should just send a blank value ?
 
can anyone answer this?

it looks like if you run this:
/usr/local/psa/bin/aps_catalog -i 3

it will attempt to go out and update all the app vault items, however it adds them to the server, but does not allow any clients to use them.

How do I allow the new clients to use these using the CLI ?
 
Install apps bundle
/usr/local/psa/bin/aps_catalog --install-applications-bundle 3


-- wait for it to be done and then install them
echo Getting Client List
#get list of users
mysql -uadmin -p`cat /etc/psa/.psa.shadow` psa -e "select login from clients where login<>'admin'" | grep -v login > ~/clientslist.tmp

echo Getting App List
#get list of applications
mysql -uadmin -p`cat /etc/psa/.psa.shadow` psa -e "select name from SiteAppPackages" | grep -v name > ~/applist.tmp

echo Adding all apps to all users
#Use siteapp-item utility to add applications to clients' pools"
cat ~/applist.tmp | while read app; do
for cl in `cat ~/clientslist.tmp`; do
/usr/local/psa/bin/siteapp-item --add-to-pool $cl -sapp-name "$app" >/dev/null 2>&1;
done;
done

rm -Rf ~/applist.tmp ~/clientslist.tmp
 
Back
Top