Changeset 77 for trunk/src/dlogd.sh
- Timestamp:
- 04/13/10 15:11:52 (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/dlogd.sh
r75 r77 60 60 system=$(uname) 61 61 case "${system}" in 62 AIX|IRIX64)63 echo " www : no specific posix checking"64 ;;65 *)66 set -o posix67 ;;62 AIX|IRIX64) 63 echo " www : no specific posix checking" 64 ;; 65 *) 66 set -o posix 67 ;; 68 68 esac 69 69 unset system … … 82 82 if [ "${IRCAAM_LOG}" = "" ] 83 83 then 84 echo " eee : \${IRCAAM_LOG} not defined"85 exit 184 echo " eee : \${IRCAAM_LOG} not defined" 85 exit 1 86 86 fi 87 87 # … … 89 89 if [ ! -d ${IRCAAM_LOG} ] 90 90 then 91 echo " eee : ${IRCAAM_LOG} not found"92 exit 191 echo " eee : ${IRCAAM_LOG} not found" 92 exit 1 93 93 fi 94 94 # … … 96 96 if [ ! -x ${IRCAAM_LOG} ] 97 97 then 98 echo " eee : ${IRCAAM_LOG} not reachable"99 exit 198 echo " eee : ${IRCAAM_LOG} not reachable" 99 exit 1 100 100 fi 101 101 # check for write permission on IRCAAM_LOG 102 102 if [ ! -w ${IRCAAM_LOG} ] 103 103 then 104 echo " eee : ${IRCAAM_LOG} not writable"105 exit 1104 echo " eee : ${IRCAAM_LOG} not writable" 105 exit 1 106 106 fi 107 107 # … … 111 111 if [ ${tmp} -eq 0 ] 112 112 then 113 if [ "${log}" = "" ]114 then115 echo "${command} : eee : no release of ${IRCAAM_LOG}/${1}.log" >&2116 exit 1117 else118 # destruction du fichier ${log}119 /bin/rm -i ${log}120 exit 0121 fi113 if [ "${log}" = "" ] 114 then 115 echo "${command} : eee : no release of ${IRCAAM_LOG}/${1}.log" >&2 116 exit 1 117 else 118 # destruction du fichier ${log} 119 /bin/rm -i ${log} 120 exit 0 121 fi 122 122 else 123 exit 1123 exit 1 124 124 fi
Note: See TracChangeset
for help on using the changeset viewer.