- 论坛徽章:
- 0
|
原帖由 ksjy 于 2009-3-30 21:43 发表 ![]()
linux安装SH问题,十万火急,明天要去客户那里安装,希望大家帮下!谢谢了!
是一个江民的LINUX软件安装包~
那边的技术工程师和我说打开光盘里面的intsall.sh就OK了.
可是我用了redhat 8.0 9.0 企业版4.0 5.0 ...
#!/bin.sh
#decrible:copy all files from /tmp/jiangmin to /usr/local/jiangmin,and chmod some files.jre files are in ./supports directory.at last add a icon onto desktop.
#date:03-06-2007
#auther:Jiangmin
TEMP=/tmp/jiangmin
INSTALL_DIR=/usr/local/jiangmin
CURRENT_DIR=$(pwd)
if [ ! -d "${INSTALL_DIR}" ]
then
mkdir -p ${INSTALL_DIR}
else
rm -frd ${INSTALL_DIR}/*
fi
cp -r ${TEMP}/* ${INSTALL_DIR}
chmod 755 ${INSTALL_DIR}/virusLib/*.so
chmod 755 ${INSTALL_DIR}/*.sh
chmod 755 ${INSTALL_DIR}/*.jar
chmod 755 ${INSTALL_DIR}/data/logo.png
echo "# ${INSTALL_DIR}/useUpdateTime.sh &" >> /etc/rc.d/rc.local
if [ -d /root/.gnome-desktop ]
then
cp ${TEMP}/jiangmin.desktop /root/.gnome-desktop
chmod 755 /root/.gnome-desktop/jiangmin.destop
fi
if [ -d /root/Desktop ]
then
cp ${TEMP}/jiangmin.desktop /root/Desktop
chmod 755 /root/Desktop/jiangmin.desktop
fi
cd ${CURRENT}
脚本第一行
#!/bin.sh
应该改成
#!/bin/sh |
|