READ ONLY FORUM: m23 :: makes software distribution easy Forum Index READ ONLY FORUM: m23 :: makes software distribution easy
The m23 discussion forum
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Integrate client manually fails with shell error

 
Post new topic   Reply to topic    READ ONLY FORUM: m23 :: makes software distribution easy Forum Index -> Problems with the client / Clientprobleme
View previous topic :: View next topic  
Author Message
Frakn
Guest





PostPosted: Mon Aug 08, 2016 5:06    Post subject: Integrate client manually fails with shell error Reply with quote

Client ist UBUNTU 14.04 LTS
Server is virtual:
Server versions
  • m23 version and patch level: 16.2 rock (100897)
  • Installation medium: CD
  • OS: Debian GNU/Linux 8 \n \l


  • Virtual machine or native: VirtualBox
  • Kernel: Linux m23s 3.16.0-4-586 #1 Debian 3.16.7-ckt25-2 (2016-04-0Cool i686 GNU/Linux


Network settings
  • Internet connection check: ok
  • Domain name resolution check: ok
  • Download without proxy: MD5 ok Size ok
  • Download with proxy: MD5 ok Size ok


Daemons
  • Apache: Apache/2.4.10 (Debian)
  • MySQL: MySQL version: 5.5.47 MySQL protocol: 10 Uptime: 1736 Threads: 1 Questions: 2419 Slow queries: 0 Opens: 91 Flush tables: 1 Open tables: 84 Queries per second avg: 1.393


Free disk space
Code:
Filesystem     1K-blocks    Used Available Use% Mounted on
/dev/sda1       15121804 1822972  12507640  13% /
udev               10240       0     10240   0% /dev
tmpfs              51260     196     51064   1% /run
tmpfs               5120       0      5120   0% /run/lock
tmpfs             202860       0    202860   0% /run/shm


Whenn calling wget http://134.169.109.xxx/work.php -O work.php ; sh work.php
I get work.php: 762: work.php: Syntax error: end of file unexpected (expecting "fi")

I took a short look into the file and it seems to look ok.

Any idea what could be the problem?
Back to top
Hauke



Joined: 02 Mar 2003
Posts: 1072

PostPosted: Sat Aug 13, 2016 18:17    Post subject: Reply with quote

Hi,

please post the contents (Clients -> Overview -> Clientname -> Control center -> Current job script) of the work.php.
_________________
Hauke Goos-Habermann
- project leader m23 (http://m23.sf.net) -
Jabber: dodgerm23@jabber.org

Schulung, Entwicklung und Support zu m23 und anderen OpenSource-Produkten: www.goos-habermann.de

Auch DU kannst etwas gegen Softwarepatente tun! www.patentfrei.de
Back to top
View user's profile Send private message Send e-mail Visit poster's website
frakn



Joined: 08 Aug 2016
Posts: 2

PostPosted: Tue Aug 16, 2016 12:05    Post subject: Reply with quote

[CODE]
current contents of the work.php file
#!/bin/bash

sync
cat >> /tmp/hsfetch.sh << "HSFETCHEOF"

wget http:///distr/halfSister/m23HSAdmin-XXXXX -O /sbin/m23HSAdmin
wget http:///distr/halfSister/m23hwscanner-XXXXX -O /sbin/m23hwscanner
wget http:///distr/halfSister/lilo2grub-XXXXX -O /sbin/lilo2grub

chmod +x /sbin/m23HSAdmin /sbin/m23hwscanner /sbin/lilo2grub

HSFETCHEOF

#Suse releases
if [ -f /etc/SuSE-release ]
then
#Check for SLED
if [ $(grep -c "SUSE Linux Enterprise Desktop" /etc/SuSE-release) -gt 0 ]
then
maj=$(tr -d "[:blank:]" < /etc/SuSE-release | grep -i VERSION | cut -d"=" -f2)
min=$(tr -d "[:blank:]" < /etc/SuSE-release | grep -i PATCHLEVEL | cut -d"=" -f2)
sed -i "s/XXXXX/SLED$maj.$min/g" /tmp/hsfetch.sh
touch /tmp/HSClient
fi
fi

if [ -f /tmp/HSClient ]
then
bash /tmp/hsfetch.sh

m23HSAdmin pkgInstallBasePackages

if [ ! -f /tmp/HSCommandExecutionStatus.code ] || [ `cat /tmp/HSCommandExecutionStatus.code` -eq 0 ]
then





id=`cat /m23clientID 2> /dev/null`

if [ $id ]
then
idvar="?m23clientID=$id"
fi



wget -qq -O/dev/null "https:///packages/setLog.php$idvar&status=pkgInstallBasePackages ° ok"

else




id=`cat /m23clientID 2> /dev/null`

if [ $id ]
then
idvar="?m23clientID=$id"
fi



cat /tmp/HSCommandExecutionStatus.code | sed "s/'/%27/g" | sed 's/+/%2B/g' > /tmp/statusdata.pre

md5=`md5sum "/tmp/HSCommandExecutionStatus.code" | cut -d' ' -f1`
echo "type=log&md5=$md5&data=`cat /tmp/statusdata.pre | sed 's/%/%25/g' | sed 's/"/%22/g' | sed 's/\\\\/%5C/g' | sed 's/&/%26/g'`" > /tmp/statusdata.post

wget -T5 -t0 --post-file /tmp/statusdata.post https:///postMessage.php$idvar -O /dev/null






id=`cat /m23clientID 2> /dev/null`

if [ $id ]
then
idvar="?m23clientID=$id"
fi



cat /tmp/HSCommandExecutionStatus.message | sed "s/'/%27/g" | sed 's/+/%2B/g' > /tmp/statusdata.pre

md5=`md5sum "/tmp/HSCommandExecutionStatus.message" | cut -d' ' -f1`
echo "type=log&md5=$md5&data=`cat /tmp/statusdata.pre | sed 's/%/%25/g' | sed 's/"/%22/g' | sed 's/\\\\/%5C/g' | sed 's/&/%26/g'`" > /tmp/statusdata.post

wget -T5 -t0 --post-file /tmp/statusdata.post https:///postMessage.php$idvar -O /dev/null







id=`cat /m23clientID 2> /dev/null`

if [ $id ]
then
idvar="?m23clientID=$id"
fi



wget -qq -O/dev/null "https:///packages/setLog.php$idvar&status=pkgInstallBasePackages ° failure"




id=`cat /m23clientID 2> /dev/null`

if [ $id ]
then
idvar="&m23clientID=$id"
fi



wget -qq -O/dev/null "https:///packages/setClientStatus.php?status=4$idvar"


echo "

!!!!!!!!!!!!!!!!!!!!!!
Error: pkgInstallBasePackages"
wait4go

/bin/sh
exit

fi


m23HSAdmin sysSetm23ClientID 7

if [ ! -f /tmp/HSCommandExecutionStatus.code ] || [ `cat /tmp/HSCommandExecutionStatus.code` -eq 0 ]
then





id=`cat /m23clientID 2> /dev/null`

if [ $id ]
then
idvar="?m23clientID=$id"
fi



wget -qq -O/dev/null "https:///packages/setLog.php$idvar&status=sysSetm23ClientID ° ok"

else




id=`cat /m23clientID 2> /dev/null`

if [ $id ]
then
idvar="?m23clientID=$id"
fi



cat /tmp/HSCommandExecutionStatus.code | sed "s/'/%27/g" | sed 's/+/%2B/g' > /tmp/statusdata.pre

md5=`md5sum "/tmp/HSCommandExecutionStatus.code" | cut -d' ' -f1`
echo "type=log&md5=$md5&data=`cat /tmp/statusdata.pre | sed 's/%/%25/g' | sed 's/"/%22/g' | sed 's/\\\\/%5C/g' | sed 's/&/%26/g'`" > /tmp/statusdata.post

wget -T5 -t0 --post-file /tmp/statusdata.post https:///postMessage.php$idvar -O /dev/null






id=`cat /m23clientID 2> /dev/null`

if [ $id ]
then
idvar="?m23clientID=$id"
fi



cat /tmp/HSCommandExecutionStatus.message | sed "s/'/%27/g" | sed 's/+/%2B/g' > /tmp/statusdata.pre

md5=`md5sum "/tmp/HSCommandExecutionStatus.message" | cut -d' ' -f1`
echo "type=log&md5=$md5&data=`cat /tmp/statusdata.pre | sed 's/%/%25/g' | sed 's/"/%22/g' | sed 's/\\\\/%5C/g' | sed 's/&/%26/g'`" > /tmp/statusdata.post

wget -T5 -t0 --post-file /tmp/statusdata.post https:///postMessage.php$idvar -O /dev/null







id=`cat /m23clientID 2> /dev/null`

if [ $id ]
then
idvar="?m23clientID=$id"
fi



wget -qq -O/dev/null "https:///packages/setLog.php$idvar&status=sysSetm23ClientID ° failure"




id=`cat /m23clientID 2> /dev/null`

if [ $id ]
then
idvar="&m23clientID=$id"
fi



wget -qq -O/dev/null "https:///packages/setClientStatus.php?status=4$idvar"


echo "

!!!!!!!!!!!!!!!!!!!!!!
Error: sysSetm23ClientID"
wait4go

/bin/sh
exit

fi


m23HSAdmin netSetm23SSLCertificate http:///packages/baseSys/ca.crt

if [ ! -f /tmp/HSCommandExecutionStatus.code ] || [ `cat /tmp/HSCommandExecutionStatus.code` -eq 0 ]
then





id=`cat /m23clientID 2> /dev/null`

if [ $id ]
then
idvar="?m23clientID=$id"
fi



wget -qq -O/dev/null "https:///packages/setLog.php$idvar&status=netSetm23SSLCertificate ° ok"

else




id=`cat /m23clientID 2> /dev/null`

if [ $id ]
then
idvar="?m23clientID=$id"
fi



cat /tmp/HSCommandExecutionStatus.code | sed "s/'/%27/g" | sed 's/+/%2B/g' > /tmp/statusdata.pre

md5=`md5sum "/tmp/HSCommandExecutionStatus.code" | cut -d' ' -f1`
echo "type=log&md5=$md5&data=`cat /tmp/statusdata.pre | sed 's/%/%25/g' | sed 's/"/%22/g' | sed 's/\\\\/%5C/g' | sed 's/&/%26/g'`" > /tmp/statusdata.post

wget -T5 -t0 --post-file /tmp/statusdata.post https:///postMessage.php$idvar -O /dev/null






id=`cat /m23clientID 2> /dev/null`

if [ $id ]
then
idvar="?m23clientID=$id"
fi



cat /tmp/HSCommandExecutionStatus.message | sed "s/'/%27/g" | sed 's/+/%2B/g' > /tmp/statusdata.pre

md5=`md5sum "/tmp/HSCommandExecutionStatus.message" | cut -d' ' -f1`
echo "type=log&md5=$md5&data=`cat /tmp/statusdata.pre | sed 's/%/%25/g' | sed 's/"/%22/g' | sed 's/\\\\/%5C/g' | sed 's/&/%26/g'`" > /tmp/statusdata.post

wget -T5 -t0 --post-file /tmp/statusdata.post https:///postMessage.php$idvar -O /dev/null







id=`cat /m23clientID 2> /dev/null`

if [ $id ]
then
idvar="?m23clientID=$id"
fi



wget -qq -O/dev/null "https:///packages/setLog.php$idvar&status=netSetm23SSLCertificate ° failure"




id=`cat /m23clientID 2> /dev/null`

if [ $id ]
then
idvar="&m23clientID=$id"
fi



wget -qq -O/dev/null "https:///packages/setClientStatus.php?status=4$idvar"


echo "

!!!!!!!!!!!!!!!!!!!!!!
Error: netSetm23SSLCertificate"
wait4go

/bin/sh
exit

fi


m23HSAdmin netEnableSSHdAndImportKey 'https:///packages/baseSys/authorized_keys'

if [ ! -f /tmp/HSCommandExecutionStatus.code ] || [ `cat /tmp/HSCommandExecutionStatus.code` -eq 0 ]
then





id=`cat /m23clientID 2> /dev/null`

if [ $id ]
then
idvar="?m23clientID=$id"
fi



wget -qq -O/dev/null "https:///packages/setLog.php$idvar&status=netEnableSSHdAndImportKey ° ok"

else




id=`cat /m23clientID 2> /dev/null`

if [ $id ]
then
idvar="?m23clientID=$id"
fi



cat /tmp/HSCommandExecutionStatus.code | sed "s/'/%27/g" | sed 's/+/%2B/g' > /tmp/statusdata.pre

md5=`md5sum "/tmp/HSCommandExecutionStatus.code" | cut -d' ' -f1`
echo "type=log&md5=$md5&data=`cat /tmp/statusdata.pre | sed 's/%/%25/g' | sed 's/"/%22/g' | sed 's/\\\\/%5C/g' | sed 's/&/%26/g'`" > /tmp/statusdata.post

wget -T5 -t0 --post-file /tmp/statusdata.post https:///postMessage.php$idvar -O /dev/null






id=`cat /m23clientID 2> /dev/null`

if [ $id ]
then
idvar="?m23clientID=$id"
fi



cat /tmp/HSCommandExecutionStatus.message | sed "s/'/%27/g" | sed 's/+/%2B/g' > /tmp/statusdata.pre

md5=`md5sum "/tmp/HSCommandExecutionStatus.message" | cut -d' ' -f1`
echo "type=log&md5=$md5&data=`cat /tmp/statusdata.pre | sed 's/%/%25/g' | sed 's/"/%22/g' | sed 's/\\\\/%5C/g' | sed 's/&/%26/g'`" > /tmp/statusdata.post

wget -T5 -t0 --post-file /tmp/statusdata.post https:///postMessage.php$idvar -O /dev/null







id=`cat /m23clientID 2> /dev/null`

if [ $id ]
then
idvar="?m23clientID=$id"
fi



wget -qq -O/dev/null "https:///packages/setLog.php$idvar&status=netEnableSSHdAndImportKey ° failure"




id=`cat /m23clientID 2> /dev/null`

if [ $id ]
then
idvar="&m23clientID=$id"
fi



wget -qq -O/dev/null "https:///packages/setClientStatus.php?status=4$idvar"


echo "

!!!!!!!!!!!!!!!!!!!!!!
Error: netEnableSSHdAndImportKey"
wait4go

/bin/sh
exit

fi


m23HSAdmin sysWriteM23fetchjob

if [ ! -f /tmp/HSCommandExecutionStatus.code ] || [ `cat /tmp/HSCommandExecutionStatus.code` -eq 0 ]
then





id=`cat /m23clientID 2> /dev/null`

if [ $id ]
then
idvar="?m23clientID=$id"
fi



wget -qq -O/dev/null "https:///packages/setLog.php$idvar&status=sysWriteM23fetchjob ° ok"

else




id=`cat /m23clientID 2> /dev/null`

if [ $id ]
then
idvar="?m23clientID=$id"
fi



cat /tmp/HSCommandExecutionStatus.code | sed "s/'/%27/g" | sed 's/+/%2B/g' > /tmp/statusdata.pre

md5=`md5sum "/tmp/HSCommandExecutionStatus.code" | cut -d' ' -f1`
echo "type=log&md5=$md5&data=`cat /tmp/statusdata.pre | sed 's/%/%25/g' | sed 's/"/%22/g' | sed 's/\\\\/%5C/g' | sed 's/&/%26/g'`" > /tmp/statusdata.post

wget -T5 -t0 --post-file /tmp/statusdata.post https:///postMessage.php$idvar -O /dev/null






id=`cat /m23clientID 2> /dev/null`

if [ $id ]
then
idvar="?m23clientID=$id"
fi



cat /tmp/HSCommandExecutionStatus.message | sed "s/'/%27/g" | sed 's/+/%2B/g' > /tmp/statusdata.pre

md5=`md5sum "/tmp/HSCommandExecutionStatus.message" | cut -d' ' -f1`
echo "type=log&md5=$md5&data=`cat /tmp/statusdata.pre | sed 's/%/%25/g' | sed 's/"/%22/g' | sed 's/\\\\/%5C/g' | sed 's/&/%26/g'`" > /tmp/statusdata.post

wget -T5 -t0 --post-file /tmp/statusdata.post https:///postMessage.php$idvar -O /dev/null







id=`cat /m23clientID 2> /dev/null`

if [ $id ]
then
idvar="?m23clientID=$id"
fi



wget -qq -O/dev/null "https:///packages/setLog.php$idvar&status=sysWriteM23fetchjob ° failure"




id=`cat /m23clientID 2> /dev/null`

if [ $id ]
then
idvar="&m23clientID=$id"
fi



wget -qq -O/dev/null "https:///packages/setClientStatus.php?status=4$idvar"


echo "

!!!!!!!!!!!!!!!!!!!!!!
Error: sysWriteM23fetchjob"
wait4go

/bin/sh
exit

fi


fi

if [ ! -f /tmp/HSClient ]
then
export PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/bin/X11

export DEBIAN_FRONTEND=noninteractive


userGroup=`find /etc/apt/sources.list -printf "chown %u.%g /etc/apt/sources.list"`
perm=`find /etc/apt/sources.list -printf "chmod %m /etc/apt/sources.list"`


if [ `awk -v RS='pheeSheiso2sieseegaxeekeitoongei' -v SEARCH="m23.sourceforge.net/m23debs" '
BEGIN { FOUND=0;}
{if (index($0, SEARCH) > 0) { FOUND++; }}
END {print(FOUND);}
' /etc/apt/sources.list` -lt 1 ]
then
cat >> /etc/apt/sources.list << "ADDIFNOTEXISTSEOF"
deb http://m23.sourceforge.net/m23debs/ ./
ADDIFNOTEXISTSEOF
fi


$userGroup
$perm

wget -T1 -t1 -q http://m23.sourceforge.net/m23-Sign-Key.asc -O - | apt-key add -

apt-get update

apt-get -y --force-yes install wget screen sed ssh parted gawk hwsetup hwdata-knoppix m23hwscanner dmidecode m23-initscripts finger debconf-utils

#copy wait4go
cp /bin/wait4go /mnt/root/bin/

cp /bin/checkdisklabel /bin/dmidecode /mnt/root/bin


rm /m23clientID 2> /dev/null
cat >> /m23clientID << "m23clientIDEOF"
7
m23clientIDEOF

mkdir -p /etc/ssl/certs
mkdir -p /usr/lib/ssl
mkdir -p /usr/local/share/ca-certificates/m23

ln -s /etc/ssl/certs /usr/lib/ssl

wget -qq -O/etc/ssl/certs/f5a6a6fe.0 "https:///packages/baseSys/ca.crt"
if [ $? -gt 0 ]
then
wget -qq --no-check-certificate -O/etc/ssl/certs/f5a6a6fe.0 "https:///packages/baseSys/ca.crt"
fi

# Copy the certificate to CAcert
cp /etc/ssl/certs/f5a6a6fe.0 /usr/local/share/ca-certificates/m23/m23server.crt

wget -qq -O/etc/ssl/certs/352b5e9f.0 "https:///packages/baseSys/ca.crt"
if [ $? -gt 0 ]
then
wget -qq --no-check-certificate -O/etc/ssl/certs/352b5e9f.0 "https:///packages/baseSys/ca.crt"
fi

# Copy the certificate to CAcert
cp /etc/ssl/certs/352b5e9f.0 /usr/local/share/ca-certificates/m23/m23server.crt

chmod -R 755 /etc/ssl/certs /usr/lib/ssl/certs /usr/local/share/ca-certificates/m23
chown -R root /etc/ssl/certs /usr/lib/ssl/certs /usr/local/share/ca-certificates/m23
chgrp -R root /etc/ssl/certs /usr/lib/ssl/certs /usr/local/share/ca-certificates/m23



if [ `grep -i 'Ubuntu 11.04' /etc/issue -c` -gt 0 ] || [ `grep -i 'Ubuntu 11.10' /etc/issue -c` -gt 0 ] || [ `grep -i 'Ubuntu 12.04' /etc/issue -c` -gt 0 ] || [ `grep -i 'Ubuntu 12.10' /etc/issue -c` -gt 0 ] || [ `grep -i 'Ubuntu 13.04' /etc/issue -c` -gt 0 ] || [ `grep -i 'Ubuntu 13.10' /etc/issue -c` -gt 0 ] || [ `grep -i 'Ubuntu 14.04' /etc/issue -c` -gt 0 ] || [ `grep -i 'Ubuntu 14.10' /etc/issue -c` -gt 0 ] || [ `grep -i 'Ubuntu 15.04' /etc/issue -c` -gt 0 ] || [ `grep -i 'Ubuntu 15.10' /etc/issue -c` -gt 0 ] || [ `grep -i 'Ubuntu 16.04' /etc/issue -c` -gt 0 ] || [ `grep -i 'Ubuntu 16.10' /etc/issue -c` -gt 0 ] || ( [ $(grep 'Mint' /etc/issue -c) -gt 0 ] && [ $(sed 's/[^0-9]//g' /etc/issue) -gt 10 ] )
then
echo 'check_certificate = off' >> /etc/wgetrc
fi

mkdir -p /root/.ssh
# /etc/ssh/
chmod 700 /root/.ssh
#Make sure sshd_config exists to remove complaining
#touch /etc/ssh/sshd_config

wget -d -O - "https:///packages/baseSys/authorized_keys" >> /root/.ssh/authorized_keys

chmod 700 /root/.ssh/authorized_keys
chown root /root/.ssh/authorized_keys
chgrp root /root/.ssh/authorized_keys




userGroup=`find /etc/ssh/sshd_config -printf "chown %u.%g /etc/ssh/sshd_config"`
perm=`find /etc/ssh/sshd_config -printf "chmod %m /etc/ssh/sshd_config"`

awk -v SEARCH="ChallengeResponseAuthentication no" -v REPLACE="ChallengeResponseAuthentication yes" '{gsub(SEARCH,REPLACE); print $0} ' /etc/ssh/sshd_config > /etc/ssh/sshd_config.m23

mv /etc/ssh/sshd_config.m23 /etc/ssh/sshd_config

$userGroup
$perm

export > /CLCFG_writeM23fetchjob.log #üüü

#write the m23fetchjob script
echo "#!/bin/bash

### BEGIN INIT INFO
# Provides: m23fetchjob
# Required-Start: \$network \$local_fs
# Required-Stop: \$network \$local_fs
# Default-Start: S
# Default-Stop:
# X-Interactive: true
# Short-Description: Fetches jobs from the m23 server
### END INIT INFO

# /etc/init.d/m23fetchjob
# Fetches jobs from the m23 server
# (C) Hauke Goos-Habermann <hhabermann@pc-kiel.de>

if [ \`screen -ls | grep -c m23fetchjob\` -gt 1 ]
then
exit 0
fi

if [ \$# -gt 0 ] && [ \$1 != "start" ]
then
exit 0
fi

m23fetchjob " > /etc/init.d/m23fetchjob
chmod +x /etc/init.d/m23fetchjob

#link it to get it executed on enery start
rm /etc/rcS.d/S42m23fetchjob 2> /dev/null
ln -s ../init.d/m23fetchjob /etc/rcS.d/S42m23fetchjob

rm /sbin/m23fetchjob 2> /dev/null

cat >> /sbin/m23fetchjob << "MFJEOF"
#!/bin/bash
export PATH=/sbin:/usr/sbin:/usr/local/sbin:/bin:/usr/bin:/usr/local/bin




id=`cat /m23clientID 2> /dev/null`

if [ $id ]
then
idvar="?m23clientID=$id"
fi



#Check if the client has a dynamic IP
if [ ! -f /etc/network/interfaces ] || [ `grep static /etc/network/interfaces | grep eth -c` -eq 0 ]
then
#Check, if the tool ip is present
ip -V
if [ $? -eq 0 ]
then
serverGateway=$(ip route | awk '/default/ { print $3 }' | head -1)
else
serverGateway=$(route -n | grep '^0\.0\.0\.0' | tr -s '[:blank:]' | cut -d' ' -f2)
fi

#CloudStack test
wget -T5 -t5 http://$serverGateway/latest/public-ipv4 -O /tmp/clientIP

if [ $? -eq 0 ]
then
#yes, run in CloudStack
curIP=$(cat /tmp/clientIP)
else
#no, normal DHCP IP
curIP=`export LC_ALL=C; ifconfig | grep "inet addr" | cut -d':' -f2 | cut -d' ' -f1 | head -1`
fi
wget -T5 -t0 --post-data "type=MSR_curDynIP&curIP=$curIP" https:///postMessage.php$idvar -O /tmp/clientIP.log
fi


cd /tmp
rm work.php* 2> /dev/null

wget -t2 -w5 https://$1/work.php$idvar -O work.php
chmod +x work.php
./work.php
exit

MFJEOF

chmod 755 /sbin/m23fetchjob
chmod +x /sbin/m23fetchjob



[/CODE]
Back to top
View user's profile Send private message
Hauke



Joined: 02 Mar 2003
Posts: 1072

PostPosted: Thu Aug 18, 2016 20:34    Post subject: Reply with quote

Hi,

I think I found the error. I will test it tomorrow.

Code:
[ \$1 != "start" ]

should be
Code:
[ \$1 != \"start\" ]

_________________
Hauke Goos-Habermann
- project leader m23 (http://m23.sf.net) -
Jabber: dodgerm23@jabber.org

Schulung, Entwicklung und Support zu m23 und anderen OpenSource-Produkten: www.goos-habermann.de

Auch DU kannst etwas gegen Softwarepatente tun! www.patentfrei.de
Back to top
View user's profile Send private message Send e-mail Visit poster's website
Hauke



Joined: 02 Mar 2003
Posts: 1072

PostPosted: Mon Aug 22, 2016 21:35    Post subject: Reply with quote

Hi,

it seems that some parts of the script are not generated. As a result, the if statement is not closed properly, which leads to an error.

I will investigate the problem futher and publish a solution, when it is ready.
_________________
Hauke Goos-Habermann
- project leader m23 (http://m23.sf.net) -
Jabber: dodgerm23@jabber.org

Schulung, Entwicklung und Support zu m23 und anderen OpenSource-Produkten: www.goos-habermann.de

Auch DU kannst etwas gegen Softwarepatente tun! www.patentfrei.de
Back to top
View user's profile Send private message Send e-mail Visit poster's website
Hauke



Joined: 02 Mar 2003
Posts: 1072

PostPosted: Wed Aug 24, 2016 21:45    Post subject: Reply with quote

Hi,

it seems to be a bit more complicated than I thought before...

Please try these changes on your m23 server and post success or failure with integrating another computer.

There are 4 pieces of code that have to be changed.

Please use the following patch file (
Code:
patch -p1 -i 16.2-assimilation-fix.patch
executed in /) on your m23 server:

https://sourceforge.net/projects/m23/files/patches/16.2-assimilation-fix.patch/download
_________________
Hauke Goos-Habermann
- project leader m23 (http://m23.sf.net) -
Jabber: dodgerm23@jabber.org

Schulung, Entwicklung und Support zu m23 und anderen OpenSource-Produkten: www.goos-habermann.de

Auch DU kannst etwas gegen Softwarepatente tun! www.patentfrei.de
Back to top
View user's profile Send private message Send e-mail Visit poster's website
Hauke



Joined: 02 Mar 2003
Posts: 1072

PostPosted: Thu Aug 25, 2016 16:11    Post subject: Reply with quote

Hi,

an update is available via the m23 webinterface and vi APT.
_________________
Hauke Goos-Habermann
- project leader m23 (http://m23.sf.net) -
Jabber: dodgerm23@jabber.org

Schulung, Entwicklung und Support zu m23 und anderen OpenSource-Produkten: www.goos-habermann.de

Auch DU kannst etwas gegen Softwarepatente tun! www.patentfrei.de
Back to top
View user's profile Send private message Send e-mail Visit poster's website
Display posts from previous:   
Post new topic   Reply to topic    READ ONLY FORUM: m23 :: makes software distribution easy Forum Index -> Problems with the client / Clientprobleme All times are GMT - 2 Hours
Page 1 of 1

 
Jump to:  
You can post new topics in this forum
You can reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group