• Debian 11 has reached its end-of-life (vendor EOL date - August 31, 2026). Plesk Obsidian 18.0.81 is the last release to support it.
    If you are running Plesk Obsidian on Debian 11, we recommend you upgrade those servers to Debian 12 using our dist-upgrade tool.
  • We plan to deprecate and remove the support for XML RPC protocol versions earlier than 1.6.9.1 in Plesk Obsidian 18.0.82. We strongly recommend that you update all existing integrations using earlier versions of the XML RPC protocol to comply with the version 1.6.9.1 specification.

AV Package Problem

S

sschroeder

Guest
Hello there,

I want to create an av package. I read through the guide and api and followed the instructions but I can't get it to work. When I upload the sh package I created I get the following error (it is a German installation of Plesk):

Fehler: Diese Paketdatei ist ungültig.
sappmng: test_package: failed to test RPM package /tmp/phpItevU6

I created a folder called "fwp-3.1.1-232" and created all necessary folders in it (apps, docs, forms, info, screenshots, scripts, uninstall). I also created tar archive (httpdocs-files.tar ) of the application and put it in the apps folder. Put empty html docs (index.en-UK.html, index.en-US.html, etc.) in the docs folder, put a installer-form-1.php and installer-handler-1.php in the forms folder, an info.xml in the info folder, the screenshots and uninstall folder is empty and the scripts folder has a postinstall file in it. The contents of my info.xml are the following (I left out all the optional stuff for now):

<?xml version="1.0" ?>
<!DOCTYPE WEBAPP SYSTEM "WEBAPP 1.0">
<WEBAPP name="fwp" friendly_name="FWP shop" version="3.1.1" release="232">

<VERSIONHISTORY>
<VER value="3.1.1-232"/>
</VERSIONHISTORY>

<ATTRIBUTES>
<DESCRIPTION>FWP shop Description</DESCRIPTION>
</ATTRIBUTES>

</WEBAPP>

Then I created a tar archive "fwp-3.1.1-232.tar", and did "uuencode fwp-3.1.1-232.tar fwp-3.1.1-232.tar >> fwp-3.1.1-232.sh. My sh file looks like this (I cut out the rest of the unicode at the end):

#!/bin/sh
#Provides: plesk-application-vault

uudecode $0
app_name=`basename $0|sed -e "s/.sh//"`
path=/usr/local/psa/var/cgitory
echo "==============Installing package ${app_name}"
tar -C ${path} -xf ${app_name}.tar
if [ $? -ne 0 ]; then
echo "!Error: cannot untar ${app_name} in ${path}"
exit 1
fi
rm -f ${app_name}.tar
echo "==============+OK"
exit 0 begin 644 fwp-3.1.1-232.tar
87!P<R\`````````````````````````````````````````````````````
M````````````````````````````````````````````````````````````
...

After the creation of the sh package on a remote linux machine I download it via ftp to my local windows machine and try to add the package in Plesk. Anybody can spot what I am doing wrong?

Cheers,
Sebastian
 
Back
Top