Skip to Content.
Sympa Menu

sm-grimoire - [SM-Grimoire]getting error in this code, why?

sm-grimoire AT lists.ibiblio.org

Subject: Discussion of Spells and Grimoire items

List archive

Chronological Thread  
  • From: Eric Schabell <eschabell AT sourcemage.org>
  • To: sm-grimoire AT lists.ibiblio.org
  • Subject: [SM-Grimoire]getting error in this code, why?
  • Date: Sun, 27 Oct 2002 02:33:23 +0100

Howdy all, need your help:

Can someone tell me why this is giving me the following error when I execute
(see code
below):

./POST_INSTALL: line 19: syntax error: unexpected end of file

***********************code below********************************************
samba_test=$(grep "mkdir /var/run/samba" /etc/init.d/bootmisc.sh)

if [ ! -n "$samba_test" ]; then

cat >> /etc/init.d/bootmisc.sh <<EOF

# added for samba
mkdir /var/run/samba

# if needed add the following with correct values
# chmod <whatever> /var/run/samba
# chown <whomever> /var/run/samba
EOF
fi
*****************************************************************

Eric





Archive powered by MHonArc 2.6.24.

Top of Page