ispCP - Board - Support
in FreeBSD 8.2 not work set-gui-permissions.sh, 403 page - 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: in FreeBSD 8.2 not work set-gui-permissions.sh, 403 page (/thread-14168.html)



in FreeBSD 8.2 not work set-gui-permissions.sh, 403 page - schmel - 06-13-2011 05:31 PM

Ticket #2566

After the installer\update does not launch ispcp gui panel. Opens 403 error page. Ispcp Omega 1.1.0 beta1

Log - here: http://isp-control.net/ispcp/attachment/ticket/2566/ispcp-update.log

In folder /usr/local/www/ispcp/engine/setup/ appeared new empty folders:

0755
root
wheel
-m
-g


RE: in FreeBSD 8.2 not work set-gui-permissions.sh, 403 page - Obi_Wan - 06-14-2011 01:15 AM

What is your default shell under FreeBSD? I could imagine that the command interpreter doesn't understand what to do with the shell scripts.


RE: in FreeBSD 8.2 not work set-gui-permissions.sh, 403 page - schmel - 06-14-2011 05:42 AM

My shell is default shell FreeBSD - csh.


RE: in FreeBSD 8.2 not work set-gui-permissions.sh, 403 page - Obi_Wan - 06-14-2011 06:03 AM

I can't run the shell scripts by using csh. Would it be possible to install bash on your system and change the head of the set-gui-permissions.sh to "/bin/bash" instead of "/bin/sh"?

Just to test. Or I'll try to setup a FreeBSD testserver at home Smile


RE: in FreeBSD 8.2 not work set-gui-permissions.sh, 403 page - schmel - 06-14-2011 04:36 PM

I have not used bash for this reason -
http://isp-control.net/documentation/start/installation/freebsd

4. Compile ispCP
Quote::!: Be sure that you are in the FreeBSD default Shell-Session (csh) and NOT BASH. Otherwise the $OSTYPE Version differs and the make won´t work.

I change the head of the set-gui-permissions.sh to "/bin/bash"
Now the following errors:
Code:
[root@web /usr/local/www/ispcp/engine/setup]# ./ispcp-permission-functions.sh
./ispcp-permission-functions.sh: line 39: MR_LOCK_FILE: command not found
./ispcp-permission-functions.sh: line 40: CMD_AWK: command not found
./ispcp-permission-functions.sh: line 41: CMD_BZCAT: command not found
./ispcp-permission-functions.sh: line 42: CMD_BZIP: command not found
./ispcp-permission-functions.sh: line 43: CMD_CHOWN: command not found
./ispcp-permission-functions.sh: line 44: CMD_CAT: command not found
./ispcp-permission-functions.sh: line 45: CMD_CHMOD: command not found
./ispcp-permission-functions.sh: line 46: CMD_CP: command not found
./ispcp-permission-functions.sh: line 47: CMD_DIFF: command not found
./ispcp-permission-functions.sh: line 48: CMD_CMP: command not found
./ispcp-permission-functions.sh: line 49: CMD_DF: command not found
./ispcp-permission-functions.sh: line 50: CMD_DU: command not found
./ispcp-permission-functions.sh: line 51: CMD_ECHO: command not found
./ispcp-permission-functions.sh: line 52: CMD_EGREP: command not found
./ispcp-permission-functions.sh: line 53: CMD_GZCAT: command not found
./ispcp-permission-functions.sh: line 54: CMD_GZIP: command not found
./ispcp-permission-functions.sh: line 55: CMD_GREP: command not found
./ispcp-permission-functions.sh: line 56: CMD_GROUPADD: command not found
./ispcp-permission-functions.sh: line 57: CMD_GROUPDEL: command not found
./ispcp-permission-functions.sh: line 58: CMD_HOSTNAME: command not found
./ispcp-permission-functions.sh: line 59: CMD_IFCONFIG: command not found
./ispcp-permission-functions.sh: line 60: CMD_IPTABLES: command not found
./ispcp-permission-functions.sh: line 61: CMD_LN: command not found
./ispcp-permission-functions.sh: line 62: CMD_LZMA: command not found
...................................



RE: in FreeBSD 8.2 not work set-gui-permissions.sh, 403 page - Obi_Wan - 06-14-2011 04:42 PM

I'll try something later or tomorrow at home.

Thanks for the test Smile


RE: in FreeBSD 8.2 not work set-gui-permissions.sh, 403 page - kilburn - 06-14-2011 05:03 PM

ispcp-permission-functions.sh must also be changed to bash if you do that, otherwise this sub-script would run under csh and crash horribly as you've seen.


RE: in FreeBSD 8.2 not work set-gui-permissions.sh, 403 page - schmel - 06-14-2011 08:16 PM

Under the bash just does not work.


RE: in FreeBSD 8.2 not work set-gui-permissions.sh, 403 page - schmel - 06-17-2011 08:18 PM

postinstall screenshot