create missing dir and add fix script
This commit is contained in:
parent
3c6db9a833
commit
6f96569360
@ -6,6 +6,7 @@ while getopts ":f:" o; do
|
|||||||
case "${o}" in
|
case "${o}" in
|
||||||
f)
|
f)
|
||||||
INIFILE=${OPTARG}
|
INIFILE=${OPTARG}
|
||||||
|
;;
|
||||||
*)
|
*)
|
||||||
usage
|
usage
|
||||||
;;
|
;;
|
||||||
@ -58,6 +59,7 @@ fi
|
|||||||
if [ $MRCCHAT_ENABLE = "true" ]; then
|
if [ $MRCCHAT_ENABLE = "true" ]; then
|
||||||
touch ${MYSTIC_DIR}/logs/mrcchat.${NOW}.log
|
touch ${MYSTIC_DIR}/logs/mrcchat.${NOW}.log
|
||||||
touch ${MYSTIC_DIR}/logs/mrcchat.${TOMORROW}.log
|
touch ${MYSTIC_DIR}/logs/mrcchat.${TOMORROW}.log
|
||||||
|
mkdir -p ${MYSTIC_DIR}/data/mrc/
|
||||||
ln -sf ../../logs/mrcchat.${NOW}.log ${MYSTIC_DIR}/data/mrc/mrcchat.log
|
ln -sf ../../logs/mrcchat.${NOW}.log ${MYSTIC_DIR}/data/mrc/mrcchat.log
|
||||||
ln -sf mrcchat.${NOW}.log ${MYSTIC_DIR}/logs/mrcchat.log
|
ln -sf mrcchat.${NOW}.log ${MYSTIC_DIR}/logs/mrcchat.log
|
||||||
[ -f /${MYSTIC_DIR}/logs/mrcchat.${YESTERDAY}.log ] && gzip -9 ${MYSTIC_DIR}/logs/mrcchat.${YESTERDAY}.log
|
[ -f /${MYSTIC_DIR}/logs/mrcchat.${YESTERDAY}.log ] && gzip -9 ${MYSTIC_DIR}/logs/mrcchat.${YESTERDAY}.log
|
||||||
|
Loading…
Reference in New Issue
Block a user