ispCP - Board - Support
While updateing from 1.0.0: syntax error near unexpected token `(' - Printable Version

+- ispCP - Board - Support (http://www.isp-control.net/forum)
+-- Forum: ispCP Omega Support Area (/forum-30.html)
+--- Forum: Update/Upgrade (/forum-44.html)
+--- Thread: While updateing from 1.0.0: syntax error near unexpected token `(' (/thread-7917.html)

Pages: 1 2


While updateing from 1.0.0: syntax error near unexpected token `(' - kleidi - 09-21-2009 11:30 PM

Hello there!

I'm making an update from 1.0.0 to 1.0.2 but, on step 3 fro this "How to"
http://isp-control.net/documentation/doku.php?id=start:installation:debian
i receive an error while i tried to run this command:
Code:
# aptitude install $ (cat ./docs/Debian/debian-packages-`lsb_release -cs`)
The error is:
Code:
(root@W003)-(/usr/local/src/ispcp/ispcp-omega-1.0.2) $ aptitude install $ (cat ./docs/Debian/debian-packages-`lsb_release -cs`)
-bash: syntax error near unexpected token `('
Can someone help me , please?

PS: I'm using an updated Debian lenny:
Code:
$ lsb_release -a
No LSB modules are available.
Distributor ID: Debian
Description:    Debian GNU/Linux 5.0.3 (lenny)
Release:        5.0.3
Codename:       lenny



RE: While updateing from 1.0.0: syntax error near unexpected token `(' - joximu - 09-21-2009 11:49 PM

theres a space to much:

"$(" instead of "$ ("

Code:
aptitude install $(cat ./docs/Debian/debian-packages-`lsb_release -cs`)

/J


RE: While updateing from 1.0.0: syntax error near unexpected token `(' - kleidi - 09-21-2009 11:59 PM

(09-21-2009 11:49 PM)joximu Wrote:  theres a space to much:

"$(" instead of "$ ("

Code:
aptitude install $(cat ./docs/Debian/debian-packages-`lsb_release -cs`)

/J

Thank you for your fast reply! When i run that command i received:
Code:
(root@W003)-(/usr/local/src/ispcp/ispcp-omega-1.0.2) $ aptitude install $(cat ./docs/Debian/debian-packages-`lsb_release -cs`)
Reading package lists... Done
Building dependency tree
Reading state information... Done
Reading extended state information
Initializing package states... Done
Reading task descriptions... Done
No packages will be installed, upgraded, or removed.
0 packages upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
Need to get 0B of archives. After unpacking 0B will be used.
Writing extended state information... Done
Reading package lists... Done
Building dependency tree
Reading state information... Done
Reading extended state information
Initializing package states... Done
Reading task descriptions... Done

(root@W003)-(/usr/local/src/ispcp/ispcp-omega-1.0.2) $

...but, at the instruction page of updateing ispcp appear those instructions on step3
Code:
Make sure you have added the non-free into your /etc/apt/sources.list:

deb     http://ftp.debian.org/debian/            lenny         main contrib non-free
deb     http://security.debian.org/              lenny/updates main contrib non-free

(when you get to the courier screen select 'no' to web directories)

(when you get to the postfix screen select 'internet site' and then type 'root' for mail. If you've set debian up correctly on install your domain should be already on screen.

Select 'no' to force sync updates.)

(when you get to the proftpd screen, select 'standalone')

(when you get to the rootkithunter screen, select two time 'yes')

... and i don't receive any of this screens! Is this ok?

Thanks again!


RE: While updateing from 1.0.0: syntax error near unexpected token `(' - joximu - 09-22-2009 12:04 AM

hm...

try this:

aptitude install $(cat ./docs/Debian/debian-packages-lenny)

/J


RE: While updateing from 1.0.0: syntax error near unexpected token `(' - kleidi - 09-22-2009 12:38 AM

The same results !
Thx anyway ... i have made the update without problems, but, seems that ispcp settings dose not exist anymore. Can you help me to put old settings online? I have made a backup like those instructions:
http://www.isp-control.net/documentation/doku.php?id=start:upgrade:rc


RE: While updateing from 1.0.0: syntax error near unexpected token `(' - joximu - 09-22-2009 12:52 AM

You should have the original settings in /var/www/ispcp/backup

What is not working?

/J


RE: While updateing from 1.0.0: syntax error near unexpected token `(' - kleidi - 09-22-2009 12:55 AM

I saw them , but i don't know if it is correct to copy them all in the current ispcp folder
Code:
(root@W003)-(/var/www/ispcp) $ cd backups
(root@W003)-(/var/www/ispcp/backups) $ ls -al
total 2656
drwxr-xr-x 2 root root   4096 Sep 21 00:00 .
drwxr-xr-x 7 root root   4096 Mar 30 09:58 ..
-rw-r----- 1 root root  63078 Sep  6 00:00 config-backup-2009.09.06-000002.tar.bz2
-rw-r----- 1 root root  63078 Sep  7 00:00 config-backup-2009.09.07-000002.tar.bz2
-rw-r----- 1 root root  63078 Sep  8 00:00 config-backup-2009.09.08-000002.tar.bz2
-rw-r----- 1 root root  63078 Sep  9 00:00 config-backup-2009.09.09-000001.tar.bz2
-rw-r----- 1 root root  63078 Sep 12 00:00 config-backup-2009.09.12-000002.tar.bz2
-rw-r----- 1 root root  63078 Sep 13 00:00 config-backup-2009.09.13-000001.tar.bz2
-rw-r----- 1 root root  63078 Sep 14 00:00 config-backup-2009.09.14-000003.tar.bz2
-rw-r----- 1 root root  63078 Sep 15 00:00 config-backup-2009.09.15-000002.tar.bz2
-rw-r----- 1 root root  63078 Sep 16 00:00 config-backup-2009.09.16-000001.tar.bz2
-rw-r----- 1 root root  63078 Sep 17 00:00 config-backup-2009.09.17-000001.tar.bz2
-rw-r----- 1 root root  63078 Sep 18 00:00 config-backup-2009.09.18-000002.tar.bz2
-rw-r----- 1 root root  63078 Sep 19 00:00 config-backup-2009.09.19-000001.tar.bz2
-rw-r----- 1 root root  63078 Sep 20 00:00 config-backup-2009.09.20-000001.tar.bz2
-rw-r----- 1 root root  63078 Sep 21 00:00 config-backup-2009.09.21-000002.tar.bz2
-rw-r----- 1 root root 110734 Sep  6 00:00 ispcp-2009.09.06-000002.sql.bz2
-rw-r----- 1 root root 111839 Sep  7 00:00 ispcp-2009.09.07-000002.sql.bz2
-rw-r----- 1 root root 112837 Sep  8 00:00 ispcp-2009.09.08-000002.sql.bz2
-rw-r----- 1 root root 113917 Sep  9 00:00 ispcp-2009.09.09-000001.sql.bz2
-rw-r----- 1 root root 114899 Sep 12 00:00 ispcp-2009.09.12-000002.sql.bz2
-rw-r----- 1 root root 116072 Sep 13 00:00 ispcp-2009.09.13-000001.sql.bz2
-rw-r----- 1 root root 117174 Sep 14 00:00 ispcp-2009.09.14-000003.sql.bz2
-rw-r----- 1 root root 118018 Sep 15 00:00 ispcp-2009.09.15-000002.sql.bz2
-rw-r----- 1 root root 119265 Sep 16 00:00 ispcp-2009.09.16-000001.sql.bz2
-rw-r----- 1 root root 120432 Sep 17 00:00 ispcp-2009.09.17-000001.sql.bz2
-rw-r----- 1 root root 121385 Sep 18 00:00 ispcp-2009.09.18-000002.sql.bz2
-rw-r----- 1 root root 122574 Sep 19 00:00 ispcp-2009.09.19-000001.sql.bz2
-rw-r----- 1 root root 123730 Sep 20 00:00 ispcp-2009.09.20-000001.sql.bz2
-rw-r----- 1 root root 124820 Sep 21 00:00 ispcp-2009.09.21-000002.sql.bz2
(root@W003)-(/var/www/ispcp/backups) $



RE: While updateing from 1.0.0: syntax error near unexpected token `(' - joximu - 09-22-2009 01:09 AM

the tar.bz2 contain the /etc/ispcp - the sql of course the database :-)

at least they should help to get the correct values...

/J


RE: While updateing from 1.0.0: syntax error near unexpected token `(' - kleidi - 09-22-2009 01:43 AM

I hope that this will be the last question:
How to restore the database ?

I appreciate your help and i thank you very much Wink


RE: While updateing from 1.0.0: syntax error near unexpected token `(' - joximu - 09-22-2009 02:40 AM

hm... out of my mind...

extract the backup (-> ispcp-xxx.sql)
log into mysql
use db ispcp
source the ispcp-xxx.sql file (all tables are removed and created from fresh)

maybe make another backup before :-)

you also can load the sql file in pma as sql-source

/J