#########################################################
# 1. configure access rights of web-directories
#########################################################
cgidir="./semihttpd/cgi-bin"
htmdir="./semihttpd"

# give write-acces to metadata-dir
# (this is used to store requested movielist)
chmod a+w $htmdir"/metadata"

# give write-access to images-dir
# (this is used to store requested images)
chmod a+w $htmdir"/images"

# give write-access to SDP dir
# (this is used to store SDP files)
chmod a+w $htmdir"/SDPs"

#########################################################
# 2. link semiserver programs...
#########################################################
ln -sf ../../logon/logon $cgidir"/logon.cgi"  
ln -sf ../../readusers/readusers $cgidir"/readusers.cgi"
ln -sf ../../readprofiles/readprofiles $cgidir"/readprofiles.cgi"
ln -sf ../../embedded/embedded $cgidir"/embedded.cgi"
