install.sh
上传用户:qdrechuli
上传日期:2022-08-01
资源大小:917k
文件大小:1k
- #!/bin/sh
- #All rights to NetAdmin (argh!!!)
- chmod -R 777 /opt/NetAdmin/
- #Install GD for Perl
- cd GD-1.16
- perl Makefile.PL
- make
- make install
- cd ..
- #Install GDTextUtil for Perl
- cd GDTextUtil-0.80
- perl Makefile.PL
- make
- make install
- cd ..
- #Install Html for Perl
- cd Html
- perl Makefile.PL
- make
- make install
- cd ..
- #Links
- ln -s /opt/NetAdmin/Net-Cam/cron/Net-Cam /etc/cron.daily/Net-Cam
- ln -s /opt/NetAdmin/Net-Cam/etc/getcam /etc/rc.d/init.d/getcam
- ln -s /opt/NetAdmin/Net-Cam/etc/optcam /etc/rc.d/init.d/optcam
- ln -s /opt/NetAdmin/Net-Cam/etc/getcam /etc/rc3.d/S99getcam
- ln -s /opt/NetAdmin/Net-Cam/etc/getcam /etc/rc3.d/K00getcam
- #Configure Apache
- echo "Include /opt/NetAdmin/Net-Cam/etc/httpd.conf" >> /etc/httpd/conf/httpd.conf
- echo "Include /opt/NetAdmin/NetAdmin/etc/httpd.conf" >> /etc/httpd/conf/httpd.conf
- #Configure MySQL
- mysql -f < /opt/NetAdmin/Net-Cam/sql/create.sql