nimg.neuroinf.jp/etc/copy-nimgsearch.sh
2022-06-20 17:51:03 +09:00

11 lines
301 B
Bash

#!/bin/bash
XOOPS_ROOT_PATH=/data/www/nimg.neuroinf.jp/html
DATADIR=$(dirname $0)/data
SRCDIR=${XOOPS_ROOT_PATH}/modules/nimgsearch
DESTDIR=${DATADIR}/public/modules/nimgsearch
mkdir -p ${DESTDIR}
rsync -av --delete ${SRCDIR}/res/ ${DESTDIR}/res/
rsync -av --delete ${SRCDIR}/help/ ${DESTDIR}/help/