543404b3be9712e7be971ea057de6a7298e1de03
[feisty_meow.git] / scripts / cgi / prepare_cgi_bin_for_apache.sh
1 #!/bin/bash
2
3 # this script needs to run as root.  it will copy all the important
4 # assets for cgi into the right places.
5
6 cd ~/feisty_meow/scripts/cgi
7 cp call_version_utils.sh cgi_cat.pl cgi_display.pl cgi_nechung.cgi cgi_show_file_date.sh \
8     count.cgi nechung.cgi \
9   /usr/lib/cgi-bin
10
11 cd ~/feisty_meow/scripts/database
12 cp *show_stripper.sh *movie_seeker.sh *movie_stripper.sh \
13   /usr/lib/cgi-bin
14
15 cd ~/feisty_meow/scripts/files
16 cp show_directory_listing.sh \
17   /usr/lib/cgi-bin
18
19 cd ~/feisty_meow/infobase
20 cp fortunes.dat \
21   /usr/lib/cgi-bin
22
23 cp $BINDIR/*nechung* /usr/lib/cgi-bin
24
25 chmod a+x /usr/lib/cgi-bin/*
26
27 /usr/lib/cgi-bin/nechung /usr/lib/cgi-bin/fortunes.dat
28