View Single Post
Old 02-04-2009, 05:17 PM   #1
Member
 
Join Date: May 2008
Posts: 34
BeoNET is on a distinguished road
Default Joomla WebScript Problem

Quote:
Error: Internal error Script install failed 1 true gzip: stdin has more than one entry--rest ignored tar: Child returned status 2 tar: Error exit delayed from previous errors
This error apears when i try to install Joomla through Web Script from ISP Manager Control Panel Control Panel.

Quote:
#!/bin/sh

COMMAND=$1
DESTFOLDER=$2/$3
DISTFILE=$4

case $COMMAND in
install)
TMP=`mktemp -d /tmp/mambo.XXXXXX`
cd $TMP
trap "cd /; rm -rf $TMP" EXIT
tar --extract --gzip --file $DISTFILE || exit 1
find . -maxdepth 1 -mindepth 1 -exec cp -Rf '{}' $DESTFOLDER ';'
#mv $DESTFOLDER/configuration.php-dist $DESTFOLDER/configuration.php
touch $DESTFOLDER/configuration.php
chmod 666 $DESTFOLDER/configuration.php
#chmod 777 $DESTFOLDER/administrator/backups/
#chmod 777 $DESTFOLDER/administrator/components/
#chmod 777 $DESTFOLDER/administrator/modules/
#chmod 777 $DESTFOLDER/administrator/templates/
#chmod 777 $DESTFOLDER/components/
#chmod 777 $DESTFOLDER/images/
#chmod 777 $DESTFOLDER/images/banners/
#chmod 777 $DESTFOLDER/images/stories/
#chmod 777 $DESTFOLDER/language/
#chmod 777 $DESTFOLDER/mambots/
#chmod 777 $DESTFOLDER/mambots/content/
#chmod 777 $DESTFOLDER/mambots/editors/
#chmod 777 $DESTFOLDER/mambots/editors-xtd/
#chmod 777 $DESTFOLDER/mambots/search/

# Fix bad files
for i in `find $DESTFOLDER -name "*.xml"`
do sed -E "s/^.*<?xml/<?xml/" $i > $DESTFOLDER/tmp.xml && cat $DESTFOLDER/tmp.xml > $i
done
rm -f $DESTFOLDER/tmp.xml
;;
postinstall)
rm -rf $DESTFOLDER/installation
chmod 644 $DESTFOLDER/configuration.php
;;
esac
This is content of Joomla.sh in /usr/local/ispmgr/etc/webscripts

I think the problem is in this part of script:
Quote:
tar --extract --gzip --file $DISTFILE || exit 1
Because when i try to unpack manualy downloaded Joomla.zip installation with command from above i've got same error.

I really need help with this.

Thanks !!!




----------------
Now playing: Hadouken! - Driving Nowhere
via FoxyTunes
BeoNET is offline   Reply With Quote