Initial commit
This commit is contained in:
commit
529efd53a1
140 changed files with 10310 additions and 0 deletions
22
sudo_cmd/radius-sync.sh
Executable file
22
sudo_cmd/radius-sync.sh
Executable file
|
|
@ -0,0 +1,22 @@
|
|||
#!/bin/sh
|
||||
|
||||
# ver.20070502-01
|
||||
|
||||
DATA=`/bin/date "+%Y%m%d%H%M%S"`;
|
||||
BASEDIR="/home/web/admin.consiagnet.it/www/petar";
|
||||
TOOLDIR=`pwd`;
|
||||
RADIUS_QUEUEDIR="${BASEDIR}/queue";
|
||||
RADIUS_ETC_DIR="/usr/local/etc/raddb";
|
||||
RADIUS_SRC_USER="users.queue";
|
||||
RADIUS_DST_USER="users";
|
||||
|
||||
|
||||
cd ${RADIUS_QUEUEDIR}
|
||||
|
||||
if [ -f ${RADIUS_ETC_DIR}/${RADIUS_DST_USER} ]; then
|
||||
cp ${RADIUS_ETC_DIR}/${RADIUS_DST_USER} ${RADIUS_ETC_DIR}/${RADIUS_DST_USER}.${DATA}.bak;
|
||||
fi
|
||||
|
||||
cp ${RADIUS_QUEUEDIR}/${RADIUS_SRC_USER} ${RADIUS_ETC_DIR}/${RADIUS_DST_USER};
|
||||
|
||||
/usr/bin/killall -hup radiusd
|
||||
Loading…
Add table
Add a link
Reference in a new issue